org.schmant.task.junit4.ant
Class JUnit4AntXmlReporter
java.lang.Object
org.schmant.support.AbstractArgumentChecker
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnit4AntXmlReporter
public JUnit4AntXmlReporter()
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.