public enum PreferredAssumptionException extends Enum<PreferredAssumptionException>
| Enum Constant and Description |
|---|
AUTO_DETECT
AssertJ will try to build the exception to throw in this order:
org.testng.SkipException for TestNG (if available in the classpath)
org.junit.AssumptionViolatedException for JUnit 4 (if available in the classpath)
org.opentest4j.TestAbortedException for JUnit 5
If none are available, AssertJ throws an IllegalStateException. |
JUNIT4
org.junit.AssumptionViolatedException - works with JUnit 4 |
JUNIT5
org.opentest4j.TestAbortedException - works with JUnit 5 |
TEST_NG
org.testng.SkipException - works with TestNG |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getAssumptionExceptionClass() |
String |
toString() |
static PreferredAssumptionException |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PreferredAssumptionException[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PreferredAssumptionException TEST_NG
org.testng.SkipException - works with TestNGpublic static final PreferredAssumptionException JUNIT4
org.junit.AssumptionViolatedException - works with JUnit 4public static final PreferredAssumptionException JUNIT5
org.opentest4j.TestAbortedException - works with JUnit 5public static final PreferredAssumptionException AUTO_DETECT
org.testng.SkipException for TestNG (if available in the classpath)org.junit.AssumptionViolatedException for JUnit 4 (if available in the classpath)org.opentest4j.TestAbortedException for JUnit 5IllegalStateException.public static PreferredAssumptionException[] values()
for (PreferredAssumptionException c : PreferredAssumptionException.values()) System.out.println(c);
public static PreferredAssumptionException valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Class<?> getAssumptionExceptionClass()
public String toString()
toString in class Enum<PreferredAssumptionException>Copyright © 2025. All rights reserved.