aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/junit/runner/notification/RunListener.java
diff options
context:
space:
mode:
authorPete Bentley <prb@google.com>2021-02-21 18:26:28 +0000
committerPete Bentley <prb@google.com>2021-02-22 18:38:53 +0000
commitaa1524950fb5fbffbb61d23c5442984cb731a1eb (patch)
tree7ce2c9779133dd053d314fdb25818acbbb4fa2be /src/main/java/org/junit/runner/notification/RunListener.java
parente938015d2d5a2157ed20eb622fcd9750a12bb4af (diff)
downloadjunit-aa1524950fb5fbffbb61d23c5442984cb731a1eb.tar.gz
Upgrade external/junit to 4.13.2
Contains just the changes from 4.12 to 4.13.2 and undoes local Android changes. Will re-patch those in in subsequent CLs. Bug: 129054170 Test: m Change-Id: I5ec909df6840f6c54cbab9c509c5addaee3f94e6
Diffstat (limited to 'src/main/java/org/junit/runner/notification/RunListener.java')
-rw-r--r--src/main/java/org/junit/runner/notification/RunListener.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/org/junit/runner/notification/RunListener.java b/src/main/java/org/junit/runner/notification/RunListener.java
index db9d8c1..d7cac00 100644
--- a/src/main/java/org/junit/runner/notification/RunListener.java
+++ b/src/main/java/org/junit/runner/notification/RunListener.java
@@ -70,6 +70,34 @@ public class RunListener {
}
/**
+ * Called when a test suite is about to be started. If this method is
+ * called for a given {@link Description}, then {@link #testSuiteFinished(Description)}
+ * will also be called for the same {@code Description}.
+ *
+ * <p>Note that not all runners will call this method, so runners should
+ * be prepared to handle {@link #testStarted(Description)} calls for tests
+ * where there was no corresponding {@code testSuiteStarted()} call for
+ * the parent {@code Description}.
+ *
+ * @param description the description of the test suite that is about to be run
+ * (generally a class name)
+ * @since 4.13
+ */
+ public void testSuiteStarted(Description description) throws Exception {
+ }
+
+ /**
+ * Called when a test suite has finished, whether the test suite succeeds or fails.
+ * This method will not be called for a given {@link Description} unless
+ * {@link #testSuiteStarted(Description)} was called for the same @code Description}.
+ *
+ * @param description the description of the test suite that just ran
+ * @since 4.13
+ */
+ public void testSuiteFinished(Description description) throws Exception {
+ }
+
+ /**
* Called when an atomic test is about to be started.
*
* @param description the description of the test that is about to be run