public class CustomRunner
extends org.junit.runners.BlockJUnit4ClassRunner
Runner
implementation which layers ExtendedFrameworkMethod
support on top of the standard JUnit FrameworkMethod
for extra information after checking to make sure the
test should be run.Modifier and Type | Class and Description |
---|---|
static class |
CustomRunner.IgnoreImpl |
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
testInstance |
Constructor and Description |
---|
CustomRunner(java.lang.Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
protected org.junit.runners.model.Statement |
classBlock(org.junit.runner.notification.RunNotifier notifier) |
protected void |
collectInitializationErrors(java.util.List<java.lang.Throwable> errors) |
protected java.util.List<org.junit.runners.model.FrameworkMethod> |
computeTestMethods() |
protected org.junit.Ignore |
convertSkipToIgnore(org.junit.runners.model.FrameworkMethod frameworkMethod) |
protected java.lang.Object |
createTest() |
protected java.util.List<org.junit.runners.model.FrameworkMethod> |
doComputation() |
TestClassMetadata |
getTestClassMetadata() |
protected java.lang.Object |
getTestInstance() |
protected boolean |
isAllTestsIgnored() |
protected org.junit.runners.model.Statement |
methodBlock(org.junit.runners.model.FrameworkMethod method) |
protected void |
sortMethods(java.util.List<org.junit.runners.model.FrameworkMethod> computedTestMethods) |
protected org.junit.runners.model.Statement |
withAfterClasses(org.junit.runners.model.Statement statement) |
protected org.junit.runners.model.Statement |
withBeforeClasses(org.junit.runners.model.Statement statement) |
describeChild, getChildren, getTestRules, isIgnored, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
public CustomRunner(java.lang.Class<?> clazz) throws org.junit.runners.model.InitializationError, org.junit.runner.manipulation.NoTestsRemainException
org.junit.runners.model.InitializationError
org.junit.runner.manipulation.NoTestsRemainException
protected void collectInitializationErrors(java.util.List<java.lang.Throwable> errors)
collectInitializationErrors
in class org.junit.runners.BlockJUnit4ClassRunner
public TestClassMetadata getTestClassMetadata()
protected boolean isAllTestsIgnored()
protected org.junit.runners.model.Statement withBeforeClasses(org.junit.runners.model.Statement statement)
withBeforeClasses
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
protected org.junit.runners.model.Statement withAfterClasses(org.junit.runners.model.Statement statement)
withAfterClasses
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
protected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
classBlock
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
ParentRunner.classBlock(org.junit.runner.notification.RunNotifier)
protected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
methodBlock
in class org.junit.runners.BlockJUnit4ClassRunner
protected java.lang.Object getTestInstance() throws java.lang.Exception
java.lang.Exception
protected java.lang.Object createTest() throws java.lang.Exception
createTest
in class org.junit.runners.BlockJUnit4ClassRunner
java.lang.Exception
protected java.util.List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
computeTestMethods
in class org.junit.runners.BlockJUnit4ClassRunner
protected void sortMethods(java.util.List<org.junit.runners.model.FrameworkMethod> computedTestMethods)
protected java.util.List<org.junit.runners.model.FrameworkMethod> doComputation()
protected org.junit.Ignore convertSkipToIgnore(org.junit.runners.model.FrameworkMethod frameworkMethod)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.