aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/junit/runner/Runner.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/junit/runner/Runner.java')
-rw-r--r--src/main/java/org/junit/runner/Runner.java47
1 files changed, 25 insertions, 22 deletions
diff --git a/src/main/java/org/junit/runner/Runner.java b/src/main/java/org/junit/runner/Runner.java
index 39e424f..d728dd8 100644
--- a/src/main/java/org/junit/runner/Runner.java
+++ b/src/main/java/org/junit/runner/Runner.java
@@ -9,32 +9,35 @@ import org.junit.runner.notification.RunNotifier;
* a custom runner, in addition to implementing the abstract methods here you must
* also provide a constructor that takes as an argument the {@link Class} containing
* the tests.
- * <p/>
- * The default runner implementation guarantees that the instances of the test case
+ *
+ * <p>The default runner implementation guarantees that the instances of the test case
* class will be constructed immediately before running the test and that the runner
- * will retain no reference to the test case instances, generally making them
+ * will retain no reference to the test case instances, generally making them
* available for garbage collection.
- *
+ *
* @see org.junit.runner.Description
* @see org.junit.runner.RunWith
+ * @since 4.0
*/
public abstract class Runner implements Describable {
- /* (non-Javadoc)
- * @see org.junit.runner.Describable#getDescription()
- */
- public abstract Description getDescription();
+ /*
+ * (non-Javadoc)
+ * @see org.junit.runner.Describable#getDescription()
+ */
+ public abstract Description getDescription();
- /**
- * Run the tests for this runner.
- * @param notifier will be notified of events while tests are being run--tests being
- * started, finishing, and failing
- */
- public abstract void run(RunNotifier notifier);
-
- /**
- * @return the number of tests to be run by the receiver
- */
- public int testCount() {
- return getDescription().testCount();
- }
-} \ No newline at end of file
+ /**
+ * Run the tests for this runner.
+ *
+ * @param notifier will be notified of events while tests are being run--tests being
+ * started, finishing, and failing
+ */
+ public abstract void run(RunNotifier notifier);
+
+ /**
+ * @return the number of tests to be run by the receiver
+ */
+ public int testCount() {
+ return getDescription().testCount();
+ }
+}