Class TimingRunner
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
- org.junit.runners.BlockJUnit4ClassRunner
-
- com.atlassian.confluence.util.test.timing.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.BlockJUnit4ClassRunnerBlock 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 runklass
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.junit.runners.model.StatementmethodBlock(org.junit.runners.model.FrameworkMethod method)protected org.junit.runners.model.StatementmethodInvoker(org.junit.runners.model.FrameworkMethod method, Object test)voidrun(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
-
-
-
-
Constructor Detail
-
TimingRunner
public TimingRunner(Class<?> klass) throws org.junit.runners.model.InitializationError
Creates a BlockJUnit4ClassRunner to runklass- 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:
runin classorg.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
methodBlock
protected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
- Overrides:
methodBlockin classorg.junit.runners.BlockJUnit4ClassRunner
-
methodInvoker
protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method, Object test)- Overrides:
methodInvokerin classorg.junit.runners.BlockJUnit4ClassRunner
-
-