Class TimingRunner

  • All Implemented Interfaces:
    org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Orderable, org.junit.runner.manipulation.Sortable

    public class TimingRunner
    extends org.junit.runners.BlockJUnit4ClassRunner
    Block Runner that ensures we're generating basic timing logging as we run.
    Since:
    5.7
    • Constructor Summary

      Constructors 
      Constructor Description
      TimingRunner​(Class<?> klass)
      Creates a BlockJUnit4ClassRunner to run klass
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.junit.runners.model.Statement methodBlock​(org.junit.runners.model.FrameworkMethod method)  
      protected org.junit.runners.model.Statement methodInvoker​(org.junit.runners.model.FrameworkMethod method, Object test)  
      void run​(org.junit.runner.notification.RunNotifier notifier)  
      • Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner

        collectInitializationErrors, computeTestMethods, createTest, createTest, describeChild, getChildren, getTestRules, isIgnored, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
      • Methods inherited from class org.junit.runners.ParentRunner

        childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation
      • Methods inherited from class org.junit.runner.Runner

        testCount
    • Constructor Detail

      • TimingRunner

        public TimingRunner​(Class<?> klass)
                     throws org.junit.runners.model.InitializationError
        Creates a BlockJUnit4ClassRunner to run klass
        Parameters:
        klass - the test class to make a block runner for
        Throws:
        org.junit.runners.model.InitializationError - if the test class is malformed.
    • Method Detail

      • run

        public void run​(org.junit.runner.notification.RunNotifier notifier)
        Overrides:
        run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
      • methodBlock

        protected org.junit.runners.model.Statement methodBlock​(org.junit.runners.model.FrameworkMethod method)
        Overrides:
        methodBlock in class org.junit.runners.BlockJUnit4ClassRunner
      • methodInvoker

        protected org.junit.runners.model.Statement methodInvoker​(org.junit.runners.model.FrameworkMethod method,
                                                                  Object test)
        Overrides:
        methodInvoker in class org.junit.runners.BlockJUnit4ClassRunner