Package mockit.internal.expectations

Examples of mockit.internal.expectations.RecordAndReplayExecution


   * 往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);
    }
  }
View Full Code Here

TOP

Related Classes of mockit.internal.expectations.RecordAndReplayExecution

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.