Package it.com.atlassian.confluence
Class TimingSpringJUnit4ClassRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
it.com.atlassian.confluence.TimingSpringJUnit4ClassRunner
- All Implemented Interfaces:
org.junit.runner.Describable
,org.junit.runner.manipulation.Filterable
,org.junit.runner.manipulation.Orderable
,org.junit.runner.manipulation.Sortable
public class TimingSpringJUnit4ClassRunner
extends org.springframework.test.context.junit4.SpringJUnit4ClassRunner
Log test timing info while running Spring wired tests.
- Since:
- 5.10
-
Constructor Summary
ConstructorsConstructorDescriptionTimingSpringJUnit4ClassRunner
(Class<?> klass) Creates a BlockJUnit4ClassRunner to runklass
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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.springframework.test.context.junit4.SpringJUnit4ClassRunner
createTest, createTestContextManager, getDescription, getExpectedException, getJUnitTimeout, getSpringTimeout, getTestContextManager, isTestMethodIgnored, possiblyExpectingExceptions, runChild, withAfterClasses, withAfters, withAfterTestExecutionCallbacks, withBeforeClasses, withBefores, withBeforeTestExecutionCallbacks, withPotentialRepeat, withPotentialTimeout
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, createTestClass, filter, getName, getRunnerAnnotations, getTestClass, order, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withInterruptIsolation
Methods inherited from class org.junit.runner.Runner
testCount
-
Constructor Details
-
TimingSpringJUnit4ClassRunner
public TimingSpringJUnit4ClassRunner(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 Details
-
run
public void run(org.junit.runner.notification.RunNotifier notifier) - Overrides:
run
in classorg.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
methodBlock
protected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method) - Overrides:
methodBlock
in classorg.springframework.test.context.junit4.SpringJUnit4ClassRunner
-
methodInvoker
protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method, Object test) - Overrides:
methodInvoker
in classorg.junit.runners.BlockJUnit4ClassRunner
-