Ejemplo n.º 1
0
 @Override
 protected void starting(Description desc) {
   if (Debug.isDebug()) {
     System.out.println("STARTING TEST " + desc.getMethodName());
     Debug.record(0, "STARTING TEST " + desc.getMethodName());
   }
 }
Ejemplo n.º 2
0
 @Override
 public void failed(Throwable e, Description desc) {
   System.out.println("FAILED TEST " + desc.getMethodName() + ": " + e.getMessage());
   e.printStackTrace(System.err);
   if (Debug.isDebug() && !(e instanceof OutOfMemoryError)) {
     Debug.record(
         0,
         "EXCEPTION IN THREAD "
             + Thread.currentThread().getName()
             + ": "
             + e
             + " - "
             + Arrays.toString(e.getStackTrace()));
     Debug.dumpRecorder("~/quasar.dump");
   }
 }