public final class JUnit4ProviderUtil extends Object
Modifier and Type | Method and Description |
---|---|
static org.junit.runner.manipulation.Filter |
createMatchAnyDescriptionFilter(Iterable<org.junit.runner.Description> descriptions) |
static ClassMethod |
cutTestClassAndMethod(org.junit.runner.Description description)
Java Patterns of regex is slower than cutting a substring.
|
static Set<org.junit.runner.Description> |
generateFailingTestDescriptions(List<org.junit.runner.notification.Failure> allFailures)
Get all descriptions from a list of Failures
|
static boolean |
isFailureInsideJUnitItself(org.junit.runner.Description failure) |
public static Set<org.junit.runner.Description> generateFailingTestDescriptions(List<org.junit.runner.notification.Failure> allFailures)
allFailures
- the list of failures for a given test classpublic 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)public static org.junit.runner.manipulation.Filter createMatchAnyDescriptionFilter(Iterable<org.junit.runner.Description> descriptions)
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.