aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/junit/TestCouldNotBeSkippedException.java
diff options
context:
space:
mode:
authorPete Bentley <prb@google.com>2021-03-03 13:03:13 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-03-03 13:03:13 +0000
commitfcd81b3e3fa66cb13ab508ef8f9a4a8704309350 (patch)
tree9d0ef66d108d76d38341cb002d5a46f74299983f /src/main/java/org/junit/TestCouldNotBeSkippedException.java
parent23e304a839c5924c7ac7399076318adc511e9985 (diff)
parentb6446bec0ab6e17c7e047f5063201f66c7eaf8e2 (diff)
downloadjunit-fcd81b3e3fa66cb13ab508ef8f9a4a8704309350.tar.gz
Merge changes I578a2676,I4b37c2d0,Id1e2d638,I1ebe37da,I6135799c am: b6446bec0a
Original change: https://android-review.googlesource.com/c/platform/external/junit/+/1613132 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I88041ad8242f07c65db7bbc3b8167363b604af63
Diffstat (limited to 'src/main/java/org/junit/TestCouldNotBeSkippedException.java')
-rw-r--r--src/main/java/org/junit/TestCouldNotBeSkippedException.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/org/junit/TestCouldNotBeSkippedException.java b/src/main/java/org/junit/TestCouldNotBeSkippedException.java
new file mode 100644
index 0000000..4804493
--- /dev/null
+++ b/src/main/java/org/junit/TestCouldNotBeSkippedException.java
@@ -0,0 +1,19 @@
+package org.junit;
+
+/**
+ * Indicates that a test that indicated that it should be skipped could not be skipped.
+ * This can be thrown if a test uses the methods in {@link Assume} to indicate that
+ * it should be skipped, but before processing of the test was completed, other failures
+ * occured.
+ *
+ * @see org.junit.Assume
+ * @since 4.13
+ */
+public class TestCouldNotBeSkippedException extends RuntimeException {
+ private static final long serialVersionUID = 1L;
+
+ /** Creates an instance using the given assumption failure. */
+ public TestCouldNotBeSkippedException(org.junit.internal.AssumptionViolatedException cause) {
+ super("Test could not be skipped due to other failures", cause);
+ }
+}