Examples of WjrMethodItem


Examples of bufferings.ktr.wjr.shared.model.WjrMethodItem

      public long getRunTime() {
        return 1234;
      }
    };

    WjrMethodItem methodItem =
      new WjrMethodItem(ForTest.class.getName(), "successMethod");
    methodRunner.applyResult(methodItem, result);

    assertThat(methodItem.getState(), is(State.ERROR));
    assertThat(methodItem.getTrace(), is(not(nullValue())));
    assertThat(methodItem.getTime(), is("1234"));
  }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrMethodItem

      public long getRunTime() {
        return 1234;
      }
    };

    WjrMethodItem methodItem =
      new WjrMethodItem(ForTest.class.getName(), "successMethod");
    methodRunner.applyResult(methodItem, result);

    assertThat(methodItem.getState(), is(State.FAILURE));
    assertThat(methodItem.getTrace(), is(not(nullValue())));
    assertThat(methodItem.getTime(), is("1234"));
  }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrMethodItem

      public long getRunTime() {
        return 1234;
      }
    };

    WjrMethodItem methodItem =
      new WjrMethodItem(ForTest.class.getName(), "successMethod");
    methodRunner.applyResult(methodItem, result);

    assertThat(methodItem.getState(), is(State.SUCCESS));
    assertThat(methodItem.getTrace(), is(""));
    assertThat(methodItem.getTime(), is("1234"));
  }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrMethodItem

    methodRunner.runWjrMethod(null);
  }

  @Test
  public void runWjrMethod_CanRunSucceessMethod() {
    WjrMethodItem methodItem =
      new WjrMethodItem(ForTest.class.getName(), "successMethod");
    methodRunner.runWjrMethod(methodItem);
    assertThat(methodItem.getState(), is(State.SUCCESS));
    assertThat(methodItem.getTrace(), is(""));

    methodItem =
      new WjrMethodItem(ForTestJUnit3.class.getName(), "testSuccessMethod");
    methodRunner.runWjrMethod(methodItem);
    assertThat(methodItem.getState(), is(State.SUCCESS));
    assertThat(methodItem.getTrace(), is(""));
  }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrMethodItem

    assertThat(methodItem.getTrace(), is(""));
  }

  @Test
  public void runWjrMethod_CanRunFailureMethod() {
    WjrMethodItem methodItem =
      new WjrMethodItem(ForTest.class.getName(), "failureMethod");
    methodRunner.runWjrMethod(methodItem);
    assertThat(methodItem.getState(), is(State.FAILURE));
    assertThat(methodItem.getTrace(), is(not(nullValue())));

    methodItem =
      new WjrMethodItem(ForTestJUnit3.class.getName(), "testFailureMethod");
    methodRunner.runWjrMethod(methodItem);
    assertThat(methodItem.getState(), is(State.FAILURE));
    assertThat(methodItem.getTrace(), is(not(nullValue())));
  }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrMethodItem

    assertThat(methodItem.getTrace(), is(not(nullValue())));
  }

  @Test
  public void runWjrMethod_CanRunErrorMethod() {
    WjrMethodItem methodItem =
      new WjrMethodItem(ForTest.class.getName(), "errorMethod");
    methodRunner.runWjrMethod(methodItem);
    assertThat(methodItem.getState(), is(State.ERROR));
    assertThat(methodItem.getTrace(), is(not(nullValue())));

    methodItem =
      new WjrMethodItem(ForTestJUnit3.class.getName(), "testErrorMethod");
    methodRunner.runWjrMethod(methodItem);
    assertThat(methodItem.getState(), is(State.ERROR));
    assertThat(methodItem.getTrace(), is(not(nullValue())));
  }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrMethodItem

    assertThat(methodItem.getTrace(), is(not(nullValue())));
  }

  @Test
  public void runWjrMethod_CanRunInnerStaticClassMethod() {
    WjrMethodItem methodItem =
      new WjrMethodItem(
        ForTest.ForTestInnerStatic.class.getName(),
        "successMethod");
    methodRunner.runWjrMethod(methodItem);
    assertThat(methodItem.getState(), is(State.SUCCESS));
    assertThat(methodItem.getTrace(), is(""));

    methodItem =
      new WjrMethodItem(
        ForTestJUnit3.ForTestJUnit3InnerStatic.class.getName(),
        "testSuccessMethod");
    methodRunner.runWjrMethod(methodItem);
    assertThat(methodItem.getState(), is(State.SUCCESS));
    assertThat(methodItem.getTrace(), is(""));
  }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrMethodItem

    assertThat(methodItem.getTrace(), is(""));
  }

  @Test
  public void runWjrMethod_CanRunInheritClassMethod() {
    WjrMethodItem methodItem =
      new WjrMethodItem(ForTestInherit.class.getName(), "successMethod");
    methodRunner.runWjrMethod(methodItem);
    assertThat(methodItem.getState(), is(State.SUCCESS));
    assertThat(methodItem.getTrace(), is(""));

    methodItem =
      new WjrMethodItem(
        ForTestJUnit3Inherit.class.getName(),
        "testSuccessMethod");
    methodRunner.runWjrMethod(methodItem);
    assertThat(methodItem.getState(), is(State.SUCCESS));
    assertThat(methodItem.getTrace(), is(""));
  }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrMethodItem

    assertThat(methodItem.getTrace(), is(""));
  }

  @Test
  public void runWjrMethod_WillError_WithNotExistMethod() {
    WjrMethodItem methodItem =
      new WjrMethodItem(ForTest.class.getName(), "notExistMethod");
    methodRunner.runWjrMethod(methodItem);
    assertThat(methodItem.getState(), is(State.ERROR));
    assertThat(methodItem.getTrace(), is(not(nullValue())));

    methodItem =
      new WjrMethodItem(ForTestJUnit3.class.getName(), "notExistMethod");
    methodRunner.runWjrMethod(methodItem);
    assertThat(methodItem.getState(), is(State.ERROR));
    assertThat(methodItem.getTrace(), is(not(nullValue())));
  }
View Full Code Here

Examples of bufferings.ktr.wjr.shared.model.WjrMethodItem

    assertThat(methodItem.getTrace(), is(not(nullValue())));
  }

  @Test
  public void runWjrMethod_WillSetErrorToItem_WhenExceptionOccur() {
    WjrMethodItem methodItem =
      new WjrMethodItem("NotExistClass", "successMethod");
    methodRunner.runWjrMethod(methodItem);
    assertThat(methodItem.getState(), is(State.ERROR));
    assertThat(methodItem.getTrace(), is(not("")));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.