Class MultiThreadedRunner

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

    public class MultiThreadedRunner
    extends org.junit.runners.BlockJUnit4ClassRunner
    A junit runner which runs the threaded methods before the actual junit test method.
    Author:
    Jan Van Besien
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiThreadedRunner​(java.lang.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 methodInvoker​(org.junit.runners.model.FrameworkMethod method, java.lang.Object test)  
      • Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner

        collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, makeNotifier, methodBlock, possiblyExpectingExceptions, runChild, testName, validateInstanceMethods, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
      • Methods inherited from class org.junit.runners.ParentRunner

        childrenInvoker, classBlock, filter, getDescription, getFilteredChildren, getName, getTestClass, run, 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

      • MultiThreadedRunner

        public MultiThreadedRunner​(java.lang.Class<?> klass)
                            throws org.junit.runners.model.InitializationError
        Creates a BlockJUnit4ClassRunner to run klass
        Throws:
        org.junit.runners.model.InitializationError - if the test class is malformed.
    • Method Detail

      • 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