com.atlassian.confluence.util.test.timing
Class TimingRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
              extended by com.atlassian.confluence.util.test.timing.TimingRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, 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
TimingRunner(java.lang.Class<?> klass)
          Creates a BlockJUnit4ClassRunner to run klass
 
Method Summary
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, java.lang.Object test)
           
 void run(org.junit.runner.notification.RunNotifier notifier)
           
 
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateInstanceMethods, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, filter, getDescription, getName, getTestClass, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimingRunner

public TimingRunner(java.lang.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,
                                                          java.lang.Object test)
Overrides:
methodInvoker in class org.junit.runners.BlockJUnit4ClassRunner


Copyright © 2003-2014 Atlassian. All Rights Reserved.