Class CustomTestRunner

java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
com.auto.framework.CustomTestRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class CustomTestRunner
extends org.junit.runners.BlockJUnit4ClassRunner
User: Priytam Jee Pandey Date: 28/05/20 Time: 1:17 pm email: mrpjpandey@gmail.com
  • Constructor Summary

    Constructors 
    Constructor Description
    CustomTestRunner​(java.lang.Class<?> klass)  
  • Method Summary

    Modifier and Type Method Description
    protected java.lang.Object createTest()  
    protected org.junit.runner.Description describeChild​(org.junit.runners.model.FrameworkMethod method)  
    void filter​(org.junit.runner.manipulation.Filter filter)  
    protected org.junit.runners.model.Statement methodBlock​(org.junit.runners.model.FrameworkMethod method)  
    protected void runChild​(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)  
    protected boolean shouldHalt()  

    Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner

    collectInitializationErrors, computeTestMethods, getChildren, getTestRules, isIgnored, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout

    Methods inherited from class org.junit.runners.ParentRunner

    childrenInvoker, classBlock, classRules, createTestClass, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, 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 Details

    • CustomTestRunner

      public CustomTestRunner​(java.lang.Class<?> klass) throws org.junit.runners.model.InitializationError
      Throws:
      org.junit.runners.model.InitializationError
  • Method Details

    • describeChild

      protected org.junit.runner.Description describeChild​(org.junit.runners.model.FrameworkMethod method)
      Overrides:
      describeChild in class org.junit.runners.BlockJUnit4ClassRunner
    • methodBlock

      protected org.junit.runners.model.Statement methodBlock​(org.junit.runners.model.FrameworkMethod method)
      Overrides:
      methodBlock in class org.junit.runners.BlockJUnit4ClassRunner
    • createTest

      protected java.lang.Object createTest() throws java.lang.Exception
      Overrides:
      createTest in class org.junit.runners.BlockJUnit4ClassRunner
      Throws:
      java.lang.Exception
    • runChild

      protected void runChild​(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)
      Overrides:
      runChild in class org.junit.runners.BlockJUnit4ClassRunner
    • shouldHalt

      protected boolean shouldHalt()
    • filter

      public void filter​(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException
      Specified by:
      filter in interface org.junit.runner.manipulation.Filterable
      Overrides:
      filter in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
      Throws:
      org.junit.runner.manipulation.NoTestsRemainException