Class ReproduceInfoPrinter


  • public class ReproduceInfoPrinter
    extends org.junit.runner.notification.RunListener
    A RunListener that emits a command you can use to re-run a failing test with the failing random seed to System.err.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  ReproduceInfoPrinter.GradleMessageBuilder  
      • Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener

        org.junit.runner.notification.RunListener.ThreadSafe
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.logging.log4j.Logger logger  
    • Method Summary

      Modifier and Type Method Description
      void testFailure​(org.junit.runner.notification.Failure failure)  
      void testFinished​(org.junit.runner.Description description)  
      void testStarted​(org.junit.runner.Description description)  
      • Methods inherited from class org.junit.runner.notification.RunListener

        testAssumptionFailure, testIgnored, testRunFinished, testRunStarted
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        protected final org.apache.logging.log4j.Logger logger
    • Constructor Detail

      • ReproduceInfoPrinter

        public ReproduceInfoPrinter()
    • Method Detail

      • testStarted

        public void testStarted​(org.junit.runner.Description description)
                         throws java.lang.Exception
        Overrides:
        testStarted in class org.junit.runner.notification.RunListener
        Throws:
        java.lang.Exception
      • testFinished

        public void testFinished​(org.junit.runner.Description description)
                          throws java.lang.Exception
        Overrides:
        testFinished in class org.junit.runner.notification.RunListener
        Throws:
        java.lang.Exception
      • testFailure

        public void testFailure​(org.junit.runner.notification.Failure failure)
                         throws java.lang.Exception
        Overrides:
        testFailure in class org.junit.runner.notification.RunListener
        Throws:
        java.lang.Exception