org.schmant.task.junit4
Interface JUnit4Reporter<T extends JUnit4Reporter<T>>

All Known Implementing Classes:
JUnit4AntXmlReporter, JUnit4SimpleReporter, JUnit4TestSuiteReporter

public interface JUnit4Reporter<T extends JUnit4Reporter<T>>

JUnit4Reporter:s are used to configure how results from a JUnit4 test run are reported.

Implementation note: The reporter provides information about how the JUnit4Launcher should create a JUnit RunListener. The RunListener should have a zero- argument constructor and use Java system properties to configure itself. What properties to use are in a contract between the RunListener and its corresponding JUnit4Reporter class.

Since:
0.5
Author:
Karl Gustafsson
Task_package:
org.junit.junit4

Method Summary
 Map<String,String> getJavaSystemProperties(List<String> testSuiteClasses)
          Get the Map of Java system properties that the RunListener will use to configure itself.
 String getRunListenerClassName()
          Get the fully qualified name of the RunListener class.
 void validateConfiguration(Collection<String> errMsgs)
          Validate the configuration.
 

Method Detail

getRunListenerClassName

String getRunListenerClassName()
Get the fully qualified name of the RunListener class.

Returns:
The fully qualified class name.

getJavaSystemProperties

Map<String,String> getJavaSystemProperties(List<String> testSuiteClasses)
Get the Map of Java system properties that the RunListener will use to configure itself. This method may return null if the RunListener does not use any properties.

Parameters:
testSuiteClasses - A list of all test classes to run.
Returns:
The system properties.

validateConfiguration

void validateConfiguration(Collection<String> errMsgs)
Validate the configuration. Add error messages to the supplied collection.

Parameters:
errMsgs - The collection to add error messages to.