Class JUnit5Xml30StatelessReporter
- java.lang.Object
-
- org.apache.maven.surefire.extensions.StatelessReporter<WrappedReportEntry,TestSetStats,DefaultStatelessReportMojoConfiguration>
-
- org.apache.maven.plugin.surefire.extensions.SurefireStatelessReporter
-
- org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter
-
public class JUnit5Xml30StatelessReporter extends SurefireStatelessReporter
The extension ofxml reporterbased on XSD version 3.0 for JUnit5. Selectively enables phrased classes, methods and report files upon JUnit5 annotation DisplayName. author Tibor Digana (tibor17)- Since:
- 3.0.0-M4
-
-
Field Summary
Fields Modifier and Type Field Description private booleanusePhrasedFileNamefalseby default.private booleanusePhrasedTestCaseClassNamefalseby default.private booleanusePhrasedTestCaseMethodNamefalseby default.private booleanusePhrasedTestSuiteClassNamefalseby default.
-
Constructor Summary
Constructors Constructor Description JUnit5Xml30StatelessReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone(java.lang.ClassLoader target)StatelessReportEventListener<WrappedReportEntry,TestSetStats>createListener(DefaultStatelessReportMojoConfiguration configuration)Creates reporter.booleangetUsePhrasedFileName()booleangetUsePhrasedTestCaseClassName()booleangetUsePhrasedTestCaseMethodName()booleangetUsePhrasedTestSuiteClassName()voidsetUsePhrasedFileName(boolean usePhrasedFileName)voidsetUsePhrasedTestCaseClassName(boolean usePhrasedTestCaseClassName)voidsetUsePhrasedTestCaseMethodName(boolean usePhrasedTestCaseMethodName)voidsetUsePhrasedTestSuiteClassName(boolean usePhrasedTestSuiteClassName)java.lang.StringtoString()-
Methods inherited from class org.apache.maven.surefire.extensions.StatelessReporter
getVersion, isDisable, setDisable, setVersion
-
-
-
-
Field Detail
-
usePhrasedFileName
private boolean usePhrasedFileName
falseby default.
This action takes effect only in JUnit5 provider together with a test class annotated DisplayName.
-
usePhrasedTestSuiteClassName
private boolean usePhrasedTestSuiteClassName
falseby default.
This action takes effect only in JUnit5 provider together with a test class annotated DisplayName.
-
usePhrasedTestCaseClassName
private boolean usePhrasedTestCaseClassName
falseby default.
This action takes effect only in JUnit5 provider together with a test class annotated DisplayName.
-
usePhrasedTestCaseMethodName
private boolean usePhrasedTestCaseMethodName
falseby default.
This action takes effect only in JUnit5 provider together with a test method annotated DisplayName.
-
-
Method Detail
-
getUsePhrasedFileName
public boolean getUsePhrasedFileName()
-
setUsePhrasedFileName
public void setUsePhrasedFileName(boolean usePhrasedFileName)
-
getUsePhrasedTestSuiteClassName
public boolean getUsePhrasedTestSuiteClassName()
-
setUsePhrasedTestSuiteClassName
public void setUsePhrasedTestSuiteClassName(boolean usePhrasedTestSuiteClassName)
-
getUsePhrasedTestCaseClassName
public boolean getUsePhrasedTestCaseClassName()
-
setUsePhrasedTestCaseClassName
public void setUsePhrasedTestCaseClassName(boolean usePhrasedTestCaseClassName)
-
getUsePhrasedTestCaseMethodName
public boolean getUsePhrasedTestCaseMethodName()
-
setUsePhrasedTestCaseMethodName
public void setUsePhrasedTestCaseMethodName(boolean usePhrasedTestCaseMethodName)
-
createListener
public StatelessReportEventListener<WrappedReportEntry,TestSetStats> createListener(DefaultStatelessReportMojoConfiguration configuration)
Description copied from class:StatelessReporterCreates reporter.- Overrides:
createListenerin classSurefireStatelessReporter- Returns:
- reporter object
-
clone
public java.lang.Object clone(java.lang.ClassLoader target)
- Overrides:
clonein classSurefireStatelessReporter
-
toString
public java.lang.String toString()
- Overrides:
toStringin classStatelessReporter<WrappedReportEntry,TestSetStats,DefaultStatelessReportMojoConfiguration>
-
-