Class CommonDomainRegistryTest
java.lang.Object
com.reallifedeveloper.common.domain.registry.CommonDomainRegistryTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.context.support.GenericApplicationContext
createApplicationContext
(Class<?>... beanClasses) Utility method to create an application context, possibly prepopulated with a number of beans.static void
void
void
void
void
-
Constructor Details
-
CommonDomainRegistryTest
public CommonDomainRegistryTest()
-
-
Method Details
-
initializedRegistryFindsNecessaryServices
@Test public void initializedRegistryFindsNecessaryServices() -
uninitializedRegistryShouldThrowException
@Test public void uninitializedRegistryShouldThrowException() -
registryWithoutDomainEventPublisherBeanShouldThrowException
@Test public void registryWithoutDomainEventPublisherBeanShouldThrowException() -
registryWithoutTimeServiceBeanShouldThrowException
@Test public void registryWithoutTimeServiceBeanShouldThrowException() -
initCommonDomainRegistry
public static void initCommonDomainRegistry() -
createApplicationContext
public static org.springframework.context.support.GenericApplicationContext createApplicationContext(Class<?>... beanClasses) Utility method to create an application context, possibly prepopulated with a number of beans.Please note that this method assume that the beans can be generated by calling the no-args constructor. You can still configure the beans by calling
ApplicationContext.getBean
and performing any necessary initialization.- Parameters:
beanClasses
- the classes of the beans to create- Returns:
- a
GenericApplicationContext
instance with instances of the specifiedbeanClasses
registered
-