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.BlockJUnit4ClassRunnerThe Hibernate-specificRunnerimplementation which layersExtendedFrameworkMethodsupport on top of the standard JUnitFrameworkMethodfor extra information after checking to make sure the test should be run.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCustomRunner.IgnoreImpl
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ObjecttestInstance
-
Constructor Summary
Constructors Constructor Description CustomRunner(java.lang.Class<?> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.junit.runners.model.StatementclassBlock(org.junit.runner.notification.RunNotifier notifier)protected voidcollectInitializationErrors(java.util.List<java.lang.Throwable> errors)protected java.util.List<org.junit.runners.model.FrameworkMethod>computeTestMethods()protected org.junit.IgnoreconvertSkipToIgnore(org.junit.runners.model.FrameworkMethod frameworkMethod)protected java.lang.ObjectcreateTest()protected java.util.List<org.junit.runners.model.FrameworkMethod>doComputation()TestClassMetadatagetTestClassMetadata()protected java.lang.ObjectgetTestInstance()protected booleanisAllTestsIgnored()protected org.junit.runners.model.StatementmethodBlock(org.junit.runners.model.FrameworkMethod method)protected voidsortMethods(java.util.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, withPotentialTimeout
-
-
-
-
Method Detail
-
collectInitializationErrors
protected void collectInitializationErrors(java.util.List<java.lang.Throwable> errors)
- Overrides:
collectInitializationErrorsin classorg.junit.runners.BlockJUnit4ClassRunner
-
getTestClassMetadata
public TestClassMetadata 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:
ParentRunner.classBlock(org.junit.runner.notification.RunNotifier)
-
methodBlock
protected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
- Overrides:
methodBlockin classorg.junit.runners.BlockJUnit4ClassRunner
-
getTestInstance
protected java.lang.Object getTestInstance() throws java.lang.Exception- Throws:
java.lang.Exception
-
createTest
protected java.lang.Object createTest() throws java.lang.Exception- Overrides:
createTestin classorg.junit.runners.BlockJUnit4ClassRunner- Throws:
java.lang.Exception
-
computeTestMethods
protected java.util.List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
- Overrides:
computeTestMethodsin classorg.junit.runners.BlockJUnit4ClassRunner
-
sortMethods
protected void sortMethods(java.util.List<org.junit.runners.model.FrameworkMethod> computedTestMethods)
-
doComputation
protected java.util.List<org.junit.runners.model.FrameworkMethod> doComputation()
-
convertSkipToIgnore
protected org.junit.Ignore convertSkipToIgnore(org.junit.runners.model.FrameworkMethod frameworkMethod)
-
-