@@ -450,11 +450,11 @@ void bigResultReadWrite() throws Exception {
450450 .toList ();
451451
452452 assertEquals (2 , flakyFailures .size ());
453- assertNotNull (flakyFailures .get (0 ).getMessage ());
454- assertNotNull (flakyFailures .get (0 ).getType ());
455- assertNotNull (flakyFailures .get (0 ).getStackTrace ());
456- assertNotNull (flakyFailures .get (0 ).getStdout ());
457- assertNotNull (flakyFailures .get (0 ).getStderr ());
453+ assertNotNull (flakyFailures .get (0 ).message ());
454+ assertNotNull (flakyFailures .get (0 ).type ());
455+ assertNotNull (flakyFailures .get (0 ).stackTrace ());
456+ assertNotNull (flakyFailures .get (0 ).stdout ());
457+ assertNotNull (flakyFailures .get (0 ).stderr ());
458458
459459 XmlFile f = new XmlFile (TestResultAction .XSTREAM , File .createTempFile ("junitResult.xml" , null , tmp ));
460460 f .write (tr );
@@ -495,7 +495,9 @@ void bigResultReadWrite() throws Exception {
495495 .map (Difference ::toString )
496496 .toList ()));
497497 boolean isTwoEqual = FileUtils .contentEquals (f .getFile (), f2 .getFile ());
498- assertTrue (isTwoEqual , "Forgot to implement XML parsing for something?" );
498+ assertTrue (
499+ isTwoEqual ,
500+ "Forgot to implement XML parsing for something? Forgot to implement XML parsing for something?" );
499501 }
500502
501503 @ Issue ("GH-237" )
@@ -525,11 +527,11 @@ void includeFlakyAndRerun() throws Exception {
525527 .getFlakyFailures ()
526528 .get (0 );
527529 assertNotNull (flakyFailure );
528- assertEquals ("junit.framework.AssertionFailedError" , flakyFailure .getType ());
529- assertEquals ("obvious fail" , flakyFailure .getMessage ());
530- assertTrue (flakyFailure .getStackTrace ().contains ("at io.olamy.FlakyTest.testApp(FlakyTest.java:27)" ));
531- assertEquals ("this will fail maybe" , flakyFailure .getStdout ().trim ());
532- assertEquals ("this will maybe fail" , flakyFailure .getStderr ().trim ());
530+ assertEquals ("junit.framework.AssertionFailedError" , flakyFailure .type ());
531+ assertEquals ("obvious fail" , flakyFailure .message ());
532+ assertTrue (flakyFailure .stackTrace ().contains ("at io.olamy.FlakyTest.testApp(FlakyTest.java:27)" ));
533+ assertEquals ("this will fail maybe" , flakyFailure .stdout ().trim ());
534+ assertEquals ("this will maybe fail" , flakyFailure .stderr ().trim ());
533535
534536 TestResult tr = new TestResult ();
535537 tr .getSuites ().add (flakySuiteResult );
@@ -552,7 +554,7 @@ void includeFlakyAndRerun() throws Exception {
552554 // fileDiff.getDifferences().forEach(System.out::println);
553555 assertFalse (
554556 fileDiff .hasDifferences (),
555- "XML files are different:"
557+ "Forgot to implement XML parsing for something? XML files are different:"
556558 + String .join (
557559 "\n " ,
558560 StreamSupport .stream (
@@ -580,13 +582,12 @@ void includeFlakyAndRerun() throws Exception {
580582 .getRerunFailures ()
581583 .get (0 );
582584 assertNotNull (rerunFailure );
583- assertEquals ("junit.framework.AssertionFailedError" , rerunFailure .getType ());
584- assertEquals ("built to fail" , rerunFailure .getMessage ());
585- assertTrue (rerunFailure
586- .getStackTrace ()
587- .contains ("at io.olamy.AlwaysFailTest.testApp(AlwaysFailTest.java:23)" ));
588- assertEquals ("this will fail for real" , rerunFailure .getStdout ().trim ());
589- assertEquals ("this will really fail" , rerunFailure .getStderr ().trim ());
585+ assertEquals ("junit.framework.AssertionFailedError" , rerunFailure .type ());
586+ assertEquals ("built to fail" , rerunFailure .message ());
587+ assertTrue (
588+ rerunFailure .stackTrace ().contains ("at io.olamy.AlwaysFailTest.testApp(AlwaysFailTest.java:23)" ));
589+ assertEquals ("this will fail for real" , rerunFailure .stdout ().trim ());
590+ assertEquals ("this will really fail" , rerunFailure .stderr ().trim ());
590591
591592 TestResult tr = new TestResult ();
592593 tr .getSuites ().add (rerunSuite );
@@ -608,7 +609,7 @@ void includeFlakyAndRerun() throws Exception {
608609
609610 assertFalse (
610611 fileDiff .hasDifferences (),
611- "XML files are different:"
612+ "Forgot to implement XML parsing for something? XML files are different:"
612613 + String .join (
613614 "\n " ,
614615 StreamSupport .stream (
0 commit comments