KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > junit > internal > runners > ErrorReportingRunner


1 package org.junit.internal.runners;
2
3 import org.junit.runner.Description;
4 import org.junit.runner.Runner;
5 import org.junit.runner.notification.RunNotifier;
6
7 public class ErrorReportingRunner extends Runner {
8     private final Description fDescription;
9
10     private final Throwable JavaDoc fCause;
11
12     public ErrorReportingRunner(Description description, Throwable JavaDoc cause) {
13         fDescription= description;
14         fCause= cause;
15     }
16
17     @Override JavaDoc
18     public Description getDescription() {
19         return fDescription;
20     }
21
22     @Override JavaDoc
23     public void run(RunNotifier notifier) {
24         notifier.testAborted(fDescription, fCause);
25     }
26 }
Popular Tags