public class JUnitReportHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JUnitReportHelper.Counts |
Constructor and Description |
---|
JUnitReportHelper(java.lang.String cname)
Prepare to generate a JUnitReport in the file named
${junit.report.dir}/${name}.xml.
|
Modifier and Type | Method and Description |
---|---|
JUnitReportHelper.Counts |
done()
Testing is complete.
|
void |
fail(java.lang.String msg)
Report that the current test failed with an error message.
|
void |
fail(java.lang.String msg,
long duration)
Report that the current test failed with an error message.
|
void |
fail(java.lang.Throwable thr)
Report that the current test failed with the given exception
as cause.
|
void |
fail(java.lang.Throwable thr,
long duration)
Report that the current test failed with the given exception
as cause.
|
void |
pass()
Report that the current test passed.
|
void |
pass(long duration)
Report that the current test passed.
|
void |
start(java.lang.String name)
Start executing a test case with the given name.
|
public JUnitReportHelper(java.lang.String cname)
cname
- The class name of the class for this testpublic void start(java.lang.String name)
name
- The name of the test casepublic void pass()
public void fail(java.lang.String msg)
public void fail(java.lang.Throwable thr)
public void pass(long duration)
public void fail(java.lang.String msg, long duration)
public void fail(java.lang.Throwable thr, long duration)
public JUnitReportHelper.Counts done()