* 往mockit.Expectations中增加参数断言
*
* @param matcher
*/
public static void addArgMatcher(ext.jtester.hamcrest.Matcher matcher) {
RecordAndReplayExecution instance = TestRun.getRecordAndReplayForRunningTest(false);
if (instance == null) {
return;
}
TestOnlyPhase currentPhase = instance.getCurrentTestOnlyPhase();
if (currentPhase != null) {
mockit.external.hamcrest.Matcher _matcher = convert(matcher);
currentPhase.addArgMatcher(_matcher);
}
}