Package com.auto.framework
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.ObjectcreateTest()protected org.junit.runner.DescriptiondescribeChild(org.junit.runners.model.FrameworkMethod method)voidfilter(org.junit.runner.manipulation.Filter filter)protected org.junit.runners.model.StatementmethodBlock(org.junit.runners.model.FrameworkMethod method)protected voidrunChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)protected booleanshouldHalt()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
-
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:
describeChildin classorg.junit.runners.BlockJUnit4ClassRunner
-
methodBlock
protected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)- Overrides:
methodBlockin classorg.junit.runners.BlockJUnit4ClassRunner
-
createTest
protected java.lang.Object createTest() throws java.lang.Exception- Overrides:
createTestin classorg.junit.runners.BlockJUnit4ClassRunner- Throws:
java.lang.Exception
-
runChild
protected void runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)- Overrides:
runChildin classorg.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:
filterin interfaceorg.junit.runner.manipulation.Filterable- Overrides:
filterin classorg.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>- Throws:
org.junit.runner.manipulation.NoTestsRemainException
-