throws IOException
{
File reportDir = new File( "." );
String testName = "aTestMethod";
String testName2 = "bTestMethod";
reportEntry = new SimpleReportEntry( this.getClass().getName(), testName, 12 );
WrappedReportEntry testSetReportEntry =
new WrappedReportEntry( reportEntry, ReportEntryType.success, 12, null, null );
File expectedReportFile = new File( reportDir, "TEST-" + testName + ".xml" );
stats.testSucceeded( testSetReportEntry );
StackTraceWriter stackTraceWriter = new DeserializedStacktraceWriter( "A fud msg", "trimmed", "fail at foo" );
DeferredFileOutputStream s = new DeferredFileOutputStream( 1000000, "fds", "fdx", new File( "" ) );
s.write( "std-o\u00DCt<null>!".getBytes("UTF-8") );
DeferredFileOutputStream s1 = new DeferredFileOutputStream( 1000000, "fds", "fdx", new File( "" ) );
byte[] bytes = "std-\u0115rr?&-&£".getBytes("UTF-8");
s1.write( bytes );
WrappedReportEntry t2 =
new WrappedReportEntry( new SimpleReportEntry( Inner.class.getName(), testName2, stackTraceWriter, 13 ),
ReportEntryType.error, 13, s, s1 );
stats.testSucceeded( t2 );
StatelessXmlReporter reporter = new StatelessXmlReporter( new File( "." ), null, false );
reporter.testSetCompleted( testSetReportEntry, stats );