Class JUnit4ProviderUtil
java.lang.Object
org.apache.maven.surefire.common.junit4.JUnit4ProviderUtil
Utility method used among all JUnit4 providers
- Author:
- Qingzhou Luo
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.junit.runner.manipulation.FiltercreateMatchAnyDescriptionFilter(Iterable<org.junit.runner.Description> descriptions) static Set<org.junit.runner.Description> generateFailingTestDescriptions(List<org.junit.runner.notification.Failure> allFailures) Get all descriptions from a list of Failuresstatic booleanisFailureInsideJUnitItself(org.junit.runner.Description failure) static org.apache.maven.surefire.api.util.internal.ClassMethodtoClassMethod(org.junit.runner.Description description) Java Patterns of regex is slower than cutting a substring.
-
Method Details
-
generateFailingTestDescriptions
-
isFailureInsideJUnitItself
public static boolean isFailureInsideJUnitItself(org.junit.runner.Description failure) -
toClassMethod
public static org.apache.maven.surefire.api.util.internal.ClassMethod toClassMethod(org.junit.runner.Description description) Java Patterns of regex is slower than cutting a substring.- Parameters:
description- method(class) or method[#](class) or method[#whatever-literals](class)- Returns:
- method JUnit test method
-
createMatchAnyDescriptionFilter
public static org.junit.runner.manipulation.Filter createMatchAnyDescriptionFilter(Iterable<org.junit.runner.Description> descriptions)
-