下面列出了怎么用org.mockito.internal.matchers.Or的API类实例代码及写法,或者点击链接到github查看源代码。
public HandyReturnValues reportOr() {
assertState(!matcherStack.isEmpty(), "No matchers found.");
Or or = new Or(popLastArgumentMatchers(2));
matcherStack.push(new LocalizedMatcher(or));
return new HandyReturnValues();
}
public HandyReturnValues reportOr() {
assertStateFor("Or(?)", TWO_SUB_MATCHERS);
Or or = new Or(popLastArgumentMatchers(TWO_SUB_MATCHERS));
matcherStack.push(new LocalizedMatcher(or));
return new HandyReturnValues();
}