Class TestTracker

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class TestTracker
    extends org.junit.rules.TestWatcher
    Adds simple System.err output tracking of test method execution.

    Note: AdvancedRunner performs tracking as well, there is no need for this @Rule if you have AdvancedRunner in use.

       @Rule
       public TestTracker ttracker = new TestTracker();
     
    • Constructor Summary

      Constructors 
      Constructor Description
      TestTracker()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void starting​(org.junit.runner.Description description)  
      • Methods inherited from class org.junit.rules.TestWatcher

        apply, failed, finished, skipped, skipped, succeeded
      • Methods inherited from class java.lang.Object

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

      • TestTracker

        public TestTracker()
    • Method Detail

      • starting

        protected void starting​(org.junit.runner.Description description)
        Overrides:
        starting in class org.junit.rules.TestWatcher