Package org.apache.tapestry5.ioc.junit
Class TestRegistryManager
- java.lang.Object
-
- org.apache.tapestry5.ioc.junit.TestRegistryManager
-
public class TestRegistryManager extends java.lang.Object
Helper class used by theTapestryIOCJUnit4ClassRunnerto manage the test registry
-
-
Constructor Summary
Constructors Constructor Description TestRegistryManager(java.lang.Class<?> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterTestClass()Notify that the current test class has completedvoidafterTestMethod()Notify that the current test method has completedprotected java.util.List<java.lang.reflect.Method>findModuleDefFactories(java.lang.Class<?> type)RegistrygetOrCreateRegistry()Get the existing registry or create one if required.protected voidshutdownRegistry()protected voidvalidateModuleDefMethod(java.lang.reflect.Method method)
-
-
-
Constructor Detail
-
TestRegistryManager
public TestRegistryManager(java.lang.Class<?> type) throws org.junit.runners.model.InitializationError
- Throws:
org.junit.runners.model.InitializationError
-
-
Method Detail
-
findModuleDefFactories
protected java.util.List<java.lang.reflect.Method> findModuleDefFactories(java.lang.Class<?> type) throws org.junit.runners.model.InitializationError
- Throws:
org.junit.runners.model.InitializationError
-
validateModuleDefMethod
protected void validateModuleDefMethod(java.lang.reflect.Method method) throws org.junit.runners.model.InitializationError
- Throws:
org.junit.runners.model.InitializationError
-
getOrCreateRegistry
public Registry getOrCreateRegistry() throws java.lang.Exception
Get the existing registry or create one if required.- Returns:
- The test Registry
- Throws:
java.lang.Exception
-
afterTestMethod
public void afterTestMethod()
Notify that the current test method has completed
-
afterTestClass
public void afterTestClass()
Notify that the current test class has completed
-
shutdownRegistry
protected void shutdownRegistry()
-
-