Class ListenerDefinition
java.lang.Object
org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.ListenerDefinition
Represents the
<listener>
element within the <junitlauncher>
task-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
defines available listener types. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ListenerDefinition
boolean
void
setClassName
(String className) void
setExtension
(String extension) Sets the output file extension for this listener.void
void
setOutputDir
(File dir) Sets the output directory for this listenervoid
setResultFile
(String filename) void
setSendSysErr
(boolean sendSysErr) void
setSendSysOut
(boolean sendSysOut) void
void
void
setUseLegacyReportingName
(boolean useLegacyReportingName) Set the test identifier reporting styleboolean
boolean
boolean
-
Constructor Details
-
ListenerDefinition
public ListenerDefinition()
-
-
Method Details
-
setClassName
-
getClassName
-
setIf
-
setUnless
-
setType
-
setResultFile
-
getResultFile
-
setExtension
Sets the output file extension for this listener.- Parameters:
extension
- file extension to use- Since:
- Ant 1.10.13
-
getExtension
-
setSendSysOut
public void setSendSysOut(boolean sendSysOut) -
shouldSendSysOut
public boolean shouldSendSysOut() -
setSendSysErr
public void setSendSysErr(boolean sendSysErr) -
shouldSendSysErr
public boolean shouldSendSysErr() -
setOutputDir
Sets the output directory for this listener- Parameters:
dir
- Path to the output directory- Since:
- Ant 1.10.6
-
getOutputDir
-
isUseLegacyReportingName
public boolean isUseLegacyReportingName()- Returns:
- Returns
true
if legacy reporting name (JUnit 4 style) is to be used. Else returnsfalse
. - Since:
- Ant 1.10.10
-
setUseLegacyReportingName
public void setUseLegacyReportingName(boolean useLegacyReportingName) Set the test identifier reporting style- Parameters:
useLegacyReportingName
-true
if legacy reporting name (JUnit 4 style) is to be used. Elsefalse
.- Since:
- Ant 1.10.10
-
shouldUse
-
fromForkedRepresentation
public static ListenerDefinition fromForkedRepresentation(XMLStreamReader reader) throws XMLStreamException - Throws:
XMLStreamException
-