aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/junit/TestCouldNotBeSkippedException.java
diff options
context:
space:
mode:
authorPete Bentley <prb@google.com>2021-02-24 10:26:16 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-24 10:26:16 +0000
commit82af4b8b1d440f44b6ebac4db1fd61ae1d35a15e (patch)
tree1331fa1b743d5d0a341f82ff555ce4c602f40ab9 /src/main/java/org/junit/TestCouldNotBeSkippedException.java
parentd5e30375603aa83d21d16fbef079caab4d24e4c1 (diff)
parentd8911c6e959a1bda9b2b77d9aa0d35eea7a401f9 (diff)
downloadjunit-82af4b8b1d440f44b6ebac4db1fd61ae1d35a15e.tar.gz
Merge changes I8f5cd126,Ifdb59336,I6abae5ae,I5ec909df am: d135966357 am: d8911c6e95
Original change: https://android-review.googlesource.com/c/platform/external/junit/+/1601635 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ib00d0e3bda09315496b61b51b207bd8981c947e7
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);
+ }
+}