Package org.hibernate.testing.junit4
Class CustomRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.hibernate.testing.junit4.CustomRunner
- All Implemented Interfaces:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Orderable,org.junit.runner.manipulation.Sortable
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.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.junit.runners.model.StatementclassBlock(org.junit.runner.notification.RunNotifier notifier) protected voidcollectInitializationErrors(List<Throwable> errors) protected List<org.junit.runners.model.FrameworkMethod> protected org.junit.IgnoreconvertSkipToIgnore(org.junit.runners.model.FrameworkMethod frameworkMethod) protected Objectprotected List<org.junit.runners.model.FrameworkMethod> protected Objectprotected booleanprotected org.junit.runners.model.StatementmethodBlock(org.junit.runners.model.FrameworkMethod method) protected voidsortMethods(List<org.junit.runners.model.FrameworkMethod> computedTestMethods) protected org.junit.runners.model.StatementwithAfterClasses(org.junit.runners.model.Statement statement) protected org.junit.runners.model.StatementwithBeforeClasses(org.junit.runners.model.Statement statement) Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
createTest, describeChild, getChildren, getTestRules, isIgnored, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutMethods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withInterruptIsolationMethods inherited from class org.junit.runner.Runner
testCount
-
Field Details
-
testInstance
-
-
Constructor Details
-
CustomRunner
public CustomRunner(Class<?> clazz) throws org.junit.runners.model.InitializationError, org.junit.runner.manipulation.NoTestsRemainException - Throws:
org.junit.runners.model.InitializationErrororg.junit.runner.manipulation.NoTestsRemainException
-
-
Method Details
-
collectInitializationErrors
- Overrides:
collectInitializationErrorsin classorg.junit.runners.BlockJUnit4ClassRunner
-
getTestClassMetadata
-
isAllTestsIgnored
protected boolean isAllTestsIgnored() -
withBeforeClasses
protected org.junit.runners.model.Statement withBeforeClasses(org.junit.runners.model.Statement statement) - Overrides:
withBeforeClassesin classorg.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
withAfterClasses
protected org.junit.runners.model.Statement withAfterClasses(org.junit.runners.model.Statement statement) - Overrides:
withAfterClassesin classorg.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
classBlock
protected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier) - Overrides:
classBlockin classorg.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>- See Also:
-
methodBlock
protected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method) - Overrides:
methodBlockin classorg.junit.runners.BlockJUnit4ClassRunner
-
getTestInstance
- Throws:
Exception
-
createTest
- Overrides:
createTestin classorg.junit.runners.BlockJUnit4ClassRunner- Throws:
Exception
-
computeTestMethods
- Overrides:
computeTestMethodsin classorg.junit.runners.BlockJUnit4ClassRunner
-
sortMethods
-
doComputation
-
convertSkipToIgnore
protected org.junit.Ignore convertSkipToIgnore(org.junit.runners.model.FrameworkMethod frameworkMethod)
-