Package org.apache.tapestry5.ioc.junit
Class TestRegistryManager
java.lang.Object
org.apache.tapestry5.ioc.junit.TestRegistryManager
Helper class used by the
TapestryIOCJUnit4ClassRunner
to manage the test registry-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Notify that the current test class has completedvoid
Notify that the current test method has completedfindModuleDefFactories
(Class<?> type) Get the existing registry or create one if required.protected void
protected void
validateModuleDefMethod
(Method method)
-
Constructor Details
-
TestRegistryManager
- Throws:
org.junit.runners.model.InitializationError
-
-
Method Details
-
findModuleDefFactories
protected List<Method> findModuleDefFactories(Class<?> type) throws org.junit.runners.model.InitializationError - Throws:
org.junit.runners.model.InitializationError
-
validateModuleDefMethod
protected void validateModuleDefMethod(Method method) throws org.junit.runners.model.InitializationError - Throws:
org.junit.runners.model.InitializationError
-
getOrCreateRegistry
Get the existing registry or create one if required.- Returns:
- The test Registry
- Throws:
Exception
-
afterTestMethod
Notify that the current test method has completed -
afterTestClass
Notify that the current test class has completed -
shutdownRegistry
-