org.schmant.task.junit4.ant
Class JUnit4AntXmlReporter

java.lang.Object
  extended by org.schmant.support.AbstractArgumentChecker
      extended by org.schmant.task.junit4.ant.JUnit4AntXmlReporter
All Implemented Interfaces:
JUnit4Reporter<JUnit4AntXmlReporter>

public class JUnit4AntXmlReporter
extends AbstractArgumentChecker
implements JUnit4Reporter<JUnit4AntXmlReporter>

This reporter defines the AntXmlRunListener run listener. It reports test output using Ant's JUnit test result XML format.

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

Constructor Summary
JUnit4AntXmlReporter()
           
 
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.
 JUnit4AntXmlReporter setTarget(Object o)
           
 void validateConfiguration(Collection<String> errMsgs)
          Validate the configuration.
 
Methods inherited from class org.schmant.support.AbstractArgumentChecker
check, check, check, check
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnit4AntXmlReporter

public JUnit4AntXmlReporter()
Method Detail

setTarget

public JUnit4AntXmlReporter setTarget(Object o)

getRunListenerClassName

public String getRunListenerClassName()
Description copied from interface: JUnit4Reporter
Get the fully qualified name of the RunListener class.

Specified by:
getRunListenerClassName in interface JUnit4Reporter<JUnit4AntXmlReporter>
Returns:
The fully qualified class name.

validateConfiguration

public void validateConfiguration(Collection<String> errMsgs)
Description copied from interface: JUnit4Reporter
Validate the configuration. Add error messages to the supplied collection.

Specified by:
validateConfiguration in interface JUnit4Reporter<JUnit4AntXmlReporter>
Parameters:
errMsgs - The collection to add error messages to.

getJavaSystemProperties

public Map<String,String> getJavaSystemProperties(List<String> testSuiteClasses)
Description copied from interface: JUnit4Reporter
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.

Specified by:
getJavaSystemProperties in interface JUnit4Reporter<JUnit4AntXmlReporter>
Parameters:
testSuiteClasses - A list of all test classes to run.
Returns:
The system properties.