コード例 #1
0
  @Override
  protected void setUp() throws Exception {
    sq = new SimpleTimer(true);
    q = sq;

    oldService = ErrorService.getErrorCallback();
    serviceStub = new ErrorCallbackStub();
    ErrorService.setErrorCallback(serviceStub);
  }
コード例 #2
0
 @Override
 protected void tearDown() throws Exception {
   ErrorService.setErrorCallback(oldService);
   assertEquals(0, serviceStub.getExceptionCount());
 }