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