public class CustomRunner
extends org.junit.runners.BlockJUnit4ClassRunner
The Hibernate-specific 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 Object |
testInstance |
| Constructor and Description |
|---|
CustomRunner(Class<?> clazz) |
| Modifier and Type | Method and Description |
|---|---|
protected org.junit.runners.model.Statement |
classBlock(org.junit.runner.notification.RunNotifier notifier) |
protected void |
collectInitializationErrors(List<Throwable> errors) |
protected List<org.junit.runners.model.FrameworkMethod> |
computeTestMethods() |
protected org.junit.Ignore |
convertSkipToIgnore(org.junit.runners.model.FrameworkMethod frameworkMethod) |
protected Object |
createTest() |
protected List<org.junit.runners.model.FrameworkMethod> |
doComputation() |
TestClassMetadata |
getTestClassMetadata() |
protected Object |
getTestInstance() |
protected boolean |
isAllTestsIgnored() |
protected org.junit.runners.model.Statement |
methodBlock(org.junit.runners.model.FrameworkMethod method) |
protected void |
sortMethods(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, withPotentialTimeoutprotected Object testInstance
public CustomRunner(Class<?> clazz) throws org.junit.runners.model.InitializationError, org.junit.runner.manipulation.NoTestsRemainException
org.junit.runners.model.InitializationErrororg.junit.runner.manipulation.NoTestsRemainExceptionprotected void collectInitializationErrors(List<Throwable> errors)
collectInitializationErrors in class org.junit.runners.BlockJUnit4ClassRunnerpublic 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.BlockJUnit4ClassRunnerprotected Object createTest() throws Exception
createTest in class org.junit.runners.BlockJUnit4ClassRunnerExceptionprotected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
computeTestMethods in class org.junit.runners.BlockJUnit4ClassRunnerprotected void sortMethods(List<org.junit.runners.model.FrameworkMethod> computedTestMethods)
protected 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.