Polishing
This commit is contained in:
parent
a15f472898
commit
b17f3bc07b
|
@ -96,11 +96,11 @@ public class TestContextManager {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
// JUnit Jupiter
|
// JUnit Jupiter
|
||||||
loadSkippedExceptionType("org.opentest4j.TestAbortedException");
|
registerSkippedExceptionType("org.opentest4j.TestAbortedException");
|
||||||
// JUnit 4
|
// JUnit 4
|
||||||
loadSkippedExceptionType("org.junit.AssumptionViolatedException");
|
registerSkippedExceptionType("org.junit.AssumptionViolatedException");
|
||||||
// TestNG
|
// TestNG
|
||||||
loadSkippedExceptionType("org.testng.SkipException");
|
registerSkippedExceptionType("org.testng.SkipException");
|
||||||
}
|
}
|
||||||
|
|
||||||
private final TestContext testContext;
|
private final TestContext testContext;
|
||||||
|
@ -664,8 +664,7 @@ public class TestContextManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@Nullable
|
private static void registerSkippedExceptionType(String name) {
|
||||||
private static void loadSkippedExceptionType(String name) {
|
|
||||||
try {
|
try {
|
||||||
Class<? extends Throwable> exceptionType = (Class<? extends Throwable>)
|
Class<? extends Throwable> exceptionType = (Class<? extends Throwable>)
|
||||||
ClassUtils.forName(name, TestContextManager.class.getClassLoader());
|
ClassUtils.forName(name, TestContextManager.class.getClassLoader());
|
||||||
|
|
Loading…
Reference in New Issue