assertThat(methodItem.getTrace(), is(not("")));
}
@Test
public void runWjrMethod_WillSetQuotaOver_WhenOverQuotaExceptionOccur() {
WjrMethodItem methodItem =
new WjrMethodItem(ForTest.class.getName(), "overQuotaExceptionMethod");
methodRunner.runWjrMethod(methodItem);
assertThat(methodItem.getState(), is(State.ERROR));
assertThat(methodItem.getTrace(), is(not("")));
assertThat(methodItem.isOverQuota(), is(true));
methodItem =
new WjrMethodItem(
ForTestJUnit3.class.getName(),
"testOverQuotaExceptionMethod");
methodRunner.runWjrMethod(methodItem);
assertThat(methodItem.getState(), is(State.ERROR));
assertThat(methodItem.getTrace(), is(not("")));
assertThat(methodItem.isOverQuota(), is(true));
}