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

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

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

EasyMock.getControlForLastCall介绍

暂无

代码示例

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

/**
 * Returns the expectation setter for the last expected invocation in the
 * current thread. This method is used for expected invocations on void
 * methods.
 *
 * @param <T>
 *            type returned by the expected method
 * @return the expectation setter.
 */
public static <T> IExpectationSetters<T> expectLastCall() {
  return getControlForLastCall();
}

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

/**
 * Returns the expectation setter for the last expected invocation in the
 * current thread.
 *
 * @param <T>
 *            type returned by the expected method
 * @param value
 *            the parameter is used to transport the type to the
 *            ExpectationSetter. It allows writing the expected call as
 *            argument, i.e. expect(mock.getName()).andReturn("John Doe").
 *
 * @return the expectation setter.
 */
public static <T> IExpectationSetters<T> expect(T value) {
  return EasyMock.getControlForLastCall();
}

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

/**
 * Returns the expectation setter for the last expected invocation in the
 * current thread. This method is used for expected invocations on void
 * methods.
 * 
 * @return the expectation setter.
 */
@SuppressWarnings("unchecked")
public static IExpectationSetters<Object> expectLastCall() {
  return getControlForLastCall();
}

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

/**
 * Returns the expectation setter for the last expected invocation in the
 * current thread. This method is used for expected invocations on void
 * methods.
 * 
 * @param <T> type returned by the expected method
 * @return the expectation setter.
 */
public static <T> IExpectationSetters<T> expectLastCall() {
  return getControlForLastCall();
}

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

/**
 * Returns the expectation setter for the last expected invocation in the
 * current thread.
 * 
 * @param value
 *            the parameter is used to transport the type to the 
 *            ExpectationSetter. It allows writing the expected call
 *            as argument, i.e.
 *            <code>expect(mock.getName()).andReturn("John Doe")<code>.
 * 
 * @return the expectation setter.
 */
@SuppressWarnings("unchecked")
public static <T> IExpectationSetters<T> expect(T value) {
  return getControlForLastCall();
}

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

/**
 * Returns the expectation setter for the last expected invocation in the
 * current thread.
 * 
 * @param <T> type returned by the expected method 
 * @param value
 *            the parameter is used to transport the type to the
 *            ExpectationSetter. It allows writing the expected call as
 *            argument, i.e.
 *            <code>expect(mock.getName()).andReturn("John Doe")<code>.
 * 
 * @return the expectation setter.
 */
public static <T> IExpectationSetters<T> expect(T value) {
  return EasyMock.getControlForLastCall();
}

相关文章