本文整理匯總了Java中org.easymock.EasyMock.reportMatcher方法的典型用法代碼示例。如果您正苦於以下問題:Java EasyMock.reportMatcher方法的具體用法?Java EasyMock.reportMatcher怎麽用?Java EasyMock.reportMatcher使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.easymock.EasyMock
的用法示例。
在下文中一共展示了EasyMock.reportMatcher方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: eqEvent
import org.easymock.EasyMock; //導入方法依賴的package包/類
public IWorldChangeEvent eqEvent(ExpectedAnswersOfMediator event) {
EasyMock.reportMatcher(new AnswerMatcher(event));
return null;
}
示例2: eqProducerRecord
import org.easymock.EasyMock; //導入方法依賴的package包/類
public static ProducerRecord<byte[], byte[]> eqProducerRecord(ProducerRecord<byte[], byte[]> in) {
EasyMock.reportMatcher(new ByteArrayProducerRecordEquals(in));
return null;
}
示例3: eqExceptId
import org.easymock.EasyMock; //導入方法依賴的package包/類
/**
* Matcher method to set the expected intent to match against
* (ignoring the intent ID for the intent).
*
* @param intent the expected Intent
* @return the submitted Intent
*/
public static Intent eqExceptId(Intent intent) {
EasyMock.reportMatcher(new IdAgnosticIntentMatcher(intent));
return intent;
}
示例4: eqEvent
import org.easymock.EasyMock; //導入方法依賴的package包/類
/**
* Creates matcher for pass event.
*
* @param <T>
* @param event
* @return
*/
public static <T extends IWorldEvent> T eqEvent(T event) {
EasyMock.reportMatcher(new WorldEventsMatcher(event));
return null;
}