Class CommonDomainRegistryTest

java.lang.Object
com.reallifedeveloper.common.domain.registry.CommonDomainRegistryTest

public class CommonDomainRegistryTest extends Object
  • 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()
      Initializes a CommonDomainRegistry with a SimpleDomainEventPublisher and a ClockTimeService.
    • 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 specified beanClasses registered