public final class JUnit4ProviderUtil extends Object
Modifier and Type | Method and Description |
---|---|
static org.junit.runner.Description |
createSuiteDescription(Collection<Class<?>> classes) |
static ClassMethod |
cutTestClassAndMethod(org.junit.runner.Description description)
Java Patterns of regex is slower than cutting a substring.
|
static Set<ClassMethod> |
generateFailingTests(List<org.junit.runner.notification.Failure> allFailures)
Get all test methods from a list of Failures
|
static Map<Class<?>,Set<String>> |
generateFailingTests(List<org.junit.runner.notification.Failure> allFailures,
ClassLoader testClassLoader)
Organize all the failures in previous run into a map between test classes and corresponding failing test methods
|
static boolean |
isFailureInsideJUnitItself(org.junit.runner.Description failure) |
public static Map<Class<?>,Set<String>> generateFailingTests(List<org.junit.runner.notification.Failure> allFailures, ClassLoader testClassLoader) throws TestSetFailedException
allFailures
- all the failures in previous runtestClassLoader
- ClassLoader used for test classesTestSetFailedException
public static Set<ClassMethod> generateFailingTests(List<org.junit.runner.notification.Failure> allFailures)
allFailures
- the list of failures for a given test classpublic static org.junit.runner.Description createSuiteDescription(Collection<Class<?>> classes)
public static boolean isFailureInsideJUnitItself(org.junit.runner.Description failure)
public static ClassMethod cutTestClassAndMethod(org.junit.runner.Description description)
description
- method(class) or method[#](class) or method[#whatever-literals](class)Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.