org.apache.maven.surefire.common.junit4
Class JUnit4ProviderUtil
java.lang.Object
org.apache.maven.surefire.common.junit4.JUnit4ProviderUtil
public class JUnit4ProviderUtil
- extends Object
Utility method used among all JUnit4 providers
- Author:
- Qingzhou Luo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnit4ProviderUtil
public JUnit4ProviderUtil()
generateFailingTests
public static Map<Class<?>,Set<String>> generateFailingTests(List<org.junit.runner.notification.Failure> allFailures,
org.apache.maven.surefire.util.TestsToRun testsToRun)
- Organize all the failures in previous run into a map between test classes and corresponding failing test methods
- Parameters:
allFailures - all the failures in previous runtestsToRun - all the test classes
- Returns:
- a map between failing test classes and their corresponding failing test methods
generateFailingTests
public static Set<String> generateFailingTests(List<org.junit.runner.notification.Failure> allFailures)
- Get the name of all test methods from a list of Failures
- Parameters:
allFailures - the list of failures for a given test class
- Returns:
- the list of test method names
createSuiteDescription
public static org.junit.runner.Description createSuiteDescription(Collection<Class<?>> classes)
Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.