org.easymock.EasyMock.getControlForLastCall()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中org.easymock.EasyMock.getControlForLastCall()方法的一些代码示例,展示了EasyMock.getControlForLastCall()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EasyMock.getControlForLastCall()方法的具体详情如下:
包路径:org.easymock.EasyMock
类名称:EasyMock
方法名:getControlForLastCall

EasyMock.getControlForLastCall介绍

暂无

代码示例

代码示例来源:origin: org.easymock/easymock

  1. /**
  2. * Returns the expectation setter for the last expected invocation in the
  3. * current thread. This method is used for expected invocations on void
  4. * methods.
  5. *
  6. * @param <T>
  7. * type returned by the expected method
  8. * @return the expectation setter.
  9. */
  10. public static <T> IExpectationSetters<T> expectLastCall() {
  11. return getControlForLastCall();
  12. }

代码示例来源:origin: org.easymock/easymock

  1. /**
  2. * Returns the expectation setter for the last expected invocation in the
  3. * current thread.
  4. *
  5. * @param <T>
  6. * type returned by the expected method
  7. * @param value
  8. * the parameter is used to transport the type to the
  9. * ExpectationSetter. It allows writing the expected call as
  10. * argument, i.e. expect(mock.getName()).andReturn("John Doe").
  11. *
  12. * @return the expectation setter.
  13. */
  14. public static <T> IExpectationSetters<T> expect(T value) {
  15. return EasyMock.getControlForLastCall();
  16. }

代码示例来源:origin: easymock/easymock

  1. /**
  2. * Returns the expectation setter for the last expected invocation in the
  3. * current thread. This method is used for expected invocations on void
  4. * methods.
  5. *
  6. * @return the expectation setter.
  7. */
  8. @SuppressWarnings("unchecked")
  9. public static IExpectationSetters<Object> expectLastCall() {
  10. return getControlForLastCall();
  11. }

代码示例来源:origin: org.easymock/com.springsource.org.easymock

  1. /**
  2. * Returns the expectation setter for the last expected invocation in the
  3. * current thread. This method is used for expected invocations on void
  4. * methods.
  5. *
  6. * @param <T> type returned by the expected method
  7. * @return the expectation setter.
  8. */
  9. public static <T> IExpectationSetters<T> expectLastCall() {
  10. return getControlForLastCall();
  11. }

代码示例来源:origin: easymock/easymock

  1. /**
  2. * Returns the expectation setter for the last expected invocation in the
  3. * current thread.
  4. *
  5. * @param value
  6. * the parameter is used to transport the type to the
  7. * ExpectationSetter. It allows writing the expected call
  8. * as argument, i.e.
  9. * <code>expect(mock.getName()).andReturn("John Doe")<code>.
  10. *
  11. * @return the expectation setter.
  12. */
  13. @SuppressWarnings("unchecked")
  14. public static <T> IExpectationSetters<T> expect(T value) {
  15. return getControlForLastCall();
  16. }

代码示例来源:origin: org.easymock/com.springsource.org.easymock

  1. /**
  2. * Returns the expectation setter for the last expected invocation in the
  3. * current thread.
  4. *
  5. * @param <T> type returned by the expected method
  6. * @param value
  7. * the parameter is used to transport the type to the
  8. * ExpectationSetter. It allows writing the expected call as
  9. * argument, i.e.
  10. * <code>expect(mock.getName()).andReturn("John Doe")<code>.
  11. *
  12. * @return the expectation setter.
  13. */
  14. public static <T> IExpectationSetters<T> expect(T value) {
  15. return EasyMock.getControlForLastCall();
  16. }

相关文章