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

    Constructors
    Constructor
    Description
    Creates a BlockJUnit4ClassRunner to run klass
  • Method Summary

    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.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

    Methods inherited from class java.lang.Object

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

    • TimingSpringJUnit4ClassRunner

      public TimingSpringJUnit4ClassRunner(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 Details

    • run

      public void run(org.junit.runner.notification.RunNotifier notifier)
      Overrides:
      run in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
    • methodBlock

      protected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
      Overrides:
      methodBlock in class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
    • methodInvoker

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