@Test void testBootstrap() { ContextRefreshedEvent event = mock(ContextRefreshedEvent.class); ApplicationContext applicationContext = mock(ApplicationContext.class); when(event.getApplicationContext()).thenReturn(applicationContext); registryBootstrapper.bootstrap(event); verify(repoCollectionBootstrapper).bootstrap(event, "PostgreSQL"); verify(systemEntityTypeRegistrar).register(event); verify(systemPackageRegistrar).register(event); verify(entityFactoryRegistrar).register(event); verify(systemRepositoryDecoratorFactoryRegistrar).register(event); verify(dynamicRepositoryDecoratorFactoryRegistrar).register(applicationContext); verify(importServiceRegistrar).register(event); verify(scriptRunnerRegistrar).register(event); verify(jobFactoryRegistrar).register(event); verify(exceptionResponseGeneratorRegistrar).register(applicationContext); }
public void bootstrap(ContextRefreshedEvent event) { LOG.trace("Registering repository collections ..."); repoCollectionBootstrapper.bootstrap(event, POSTGRESQL); LOG.trace("Registered repository collections"); LOG.trace("Registering system entity types ..."); systemEntityTypeRegistrar.register(event); LOG.trace("Registered system entity types"); LOG.trace("Registering system packages ..."); systemPackageRegistrar.register(event); LOG.trace("Registered system packages"); LOG.trace("Registering entity factories ..."); entityFactoryRegistrar.register(event); LOG.trace("Registered entity factories"); LOG.trace("Registering repository decorator factories ..."); systemRepositoryDecoratorFactoryRegistrar.register(event); LOG.trace("Registered repository decorator factories"); LOG.trace("Registering dynamic decorator factories ..."); dynamicRepositoryDecoratorFactoryRegistrar.register(event.getApplicationContext()); LOG.trace("Registered dynamic repository decorator factories"); LOG.trace("Registering importers ..."); importServiceRegistrar.register(event); LOG.trace("Registered importers"); LOG.trace("Registering script runners ..."); scriptRunnerRegistrar.register(event); LOG.trace("Registered script runners"); LOG.trace("Registering job factories ..."); jobFactoryRegistrar.register(event); LOG.trace("Registered job factories"); LOG.trace("Registering exception response generators ..."); exceptionResponseGeneratorRegistrar.register(event.getApplicationContext()); LOG.trace("Registered exception response generators"); }
RegistryBootstrapper { public void bootstrap(ContextRefreshedEvent event) { LOG.trace("Registering repository collections ..."); repoCollectionBootstrapper.bootstrap(event, POSTGRESQL); LOG.trace("Registered repository collections"); LOG.trace("Registering system entity types ..."); systemEntityTypeRegistrar.register(event); LOG.trace("Registered system entity types"); LOG.trace("Registering system packages ..."); systemPackageRegistrar.register(event); LOG.trace("Registered system packages"); LOG.trace("Registering entity factories ..."); entityFactoryRegistrar.register(event); LOG.trace("Registered entity factories"); LOG.trace("Registering repository decorator factories ..."); systemRepositoryDecoratorFactoryRegistrar.register(event); LOG.trace("Registered repository decorator factories"); LOG.trace("Registering dynamic decorator factories ..."); dynamicRepositoryDecoratorFactoryRegistrar.register(event.getApplicationContext()); LOG.trace("Registered dynamic repository decorator factories"); LOG.trace("Registering importers ..."); importServiceRegistrar.register(event); LOG.trace("Registered importers"); LOG.trace("Registering script runners ..."); scriptRunnerRegistrar.register(event); LOG.trace("Registered script runners"); LOG.trace("Registering job factories ..."); jobFactoryRegistrar.register(event); LOG.trace("Registered job factories"); LOG.trace("Registering exception response generators ..."); exceptionResponseGeneratorRegistrar.register(event.getApplicationContext()); LOG.trace("Registered exception response generators"); } }
RegistryBootstrapper { public void bootstrap(ContextRefreshedEvent event) { LOG.trace("Registering repository collections ..."); repoCollectionBootstrapper.bootstrap(event, POSTGRESQL); LOG.trace("Registered repository collections"); LOG.trace("Registering system entity types ..."); systemEntityTypeRegistrar.register(event); LOG.trace("Registered system entity types"); LOG.trace("Registering system packages ..."); systemPackageRegistrar.register(event); LOG.trace("Registered system packages"); LOG.trace("Registering entity factories ..."); entityFactoryRegistrar.register(event); LOG.trace("Registered entity factories"); LOG.trace("Registering repository decorator factories ..."); systemRepositoryDecoratorFactoryRegistrar.register(event); LOG.trace("Registered repository decorator factories"); LOG.trace("Registering dynamic decorator factories ..."); dynamicRepositoryDecoratorFactoryRegistrar.register(event.getApplicationContext()); LOG.trace("Registered dynamic repository decorator factories"); LOG.trace("Registering importers ..."); importServiceRegistrar.register(event); LOG.trace("Registered importers"); LOG.trace("Registering script runners ..."); scriptRunnerRegistrar.register(event); LOG.trace("Registered script runners"); LOG.trace("Registering job factories ..."); jobFactoryRegistrar.register(event); LOG.trace("Registered job factories"); LOG.trace("Registering exception response generators ..."); exceptionResponseGeneratorRegistrar.register(event.getApplicationContext()); LOG.trace("Registered exception response generators"); } RegistryBootstrapper(
      RepositoryCollectionBootstrapper repoCollectionBootstrapper,
      SystemEntityTypeRegistrar systemEntityTypeRegistrar,
      SystemPackageRegistrar systemPackageRegistrar,
      EntityFactoryRegistrar entityFactoryRegistrar,
      SystemRepositoryDecoratorFactoryRegistrar systemRepositoryDecoratorFactoryRegistrar,
      DynamicRepositoryDecoratorFactoryRegistrar dynamicRepositoryDecoratorFactoryRegistrar,
      ImportServiceRegistrar importServiceRegistrar,
      ScriptRunnerRegistrar scriptRunnerRegistrar,
      JobFactoryRegistrar jobFactoryRegistrar,
      ExceptionResponseGeneratorRegistrar exceptionResponseGeneratorRegistrar); }
RegistryBootstrapper { public void bootstrap(ContextRefreshedEvent event) { LOG.trace("Registering repository collections ..."); repoCollectionBootstrapper.bootstrap(event, POSTGRESQL); LOG.trace("Registered repository collections"); LOG.trace("Registering system entity types ..."); systemEntityTypeRegistrar.register(event); LOG.trace("Registered system entity types"); LOG.trace("Registering system packages ..."); systemPackageRegistrar.register(event); LOG.trace("Registered system packages"); LOG.trace("Registering entity factories ..."); entityFactoryRegistrar.register(event); LOG.trace("Registered entity factories"); LOG.trace("Registering repository decorator factories ..."); systemRepositoryDecoratorFactoryRegistrar.register(event); LOG.trace("Registered repository decorator factories"); LOG.trace("Registering dynamic decorator factories ..."); dynamicRepositoryDecoratorFactoryRegistrar.register(event.getApplicationContext()); LOG.trace("Registered dynamic repository decorator factories"); LOG.trace("Registering importers ..."); importServiceRegistrar.register(event); LOG.trace("Registered importers"); LOG.trace("Registering script runners ..."); scriptRunnerRegistrar.register(event); LOG.trace("Registered script runners"); LOG.trace("Registering job factories ..."); jobFactoryRegistrar.register(event); LOG.trace("Registered job factories"); LOG.trace("Registering exception response generators ..."); exceptionResponseGeneratorRegistrar.register(event.getApplicationContext()); LOG.trace("Registered exception response generators"); } RegistryBootstrapper(
      RepositoryCollectionBootstrapper repoCollectionBootstrapper,
      SystemEntityTypeRegistrar systemEntityTypeRegistrar,
      SystemPackageRegistrar systemPackageRegistrar,
      EntityFactoryRegistrar entityFactoryRegistrar,
      SystemRepositoryDecoratorFactoryRegistrar systemRepositoryDecoratorFactoryRegistrar,
      DynamicRepositoryDecoratorFactoryRegistrar dynamicRepositoryDecoratorFactoryRegistrar,
      ImportServiceRegistrar importServiceRegistrar,
      ScriptRunnerRegistrar scriptRunnerRegistrar,
      JobFactoryRegistrar jobFactoryRegistrar,
      ExceptionResponseGeneratorRegistrar exceptionResponseGeneratorRegistrar); void bootstrap(ContextRefreshedEvent event); }
RegistryBootstrapper { public void bootstrap(ContextRefreshedEvent event) { LOG.trace("Registering repository collections ..."); repoCollectionBootstrapper.bootstrap(event, POSTGRESQL); LOG.trace("Registered repository collections"); LOG.trace("Registering system entity types ..."); systemEntityTypeRegistrar.register(event); LOG.trace("Registered system entity types"); LOG.trace("Registering system packages ..."); systemPackageRegistrar.register(event); LOG.trace("Registered system packages"); LOG.trace("Registering entity factories ..."); entityFactoryRegistrar.register(event); LOG.trace("Registered entity factories"); LOG.trace("Registering repository decorator factories ..."); systemRepositoryDecoratorFactoryRegistrar.register(event); LOG.trace("Registered repository decorator factories"); LOG.trace("Registering dynamic decorator factories ..."); dynamicRepositoryDecoratorFactoryRegistrar.register(event.getApplicationContext()); LOG.trace("Registered dynamic repository decorator factories"); LOG.trace("Registering importers ..."); importServiceRegistrar.register(event); LOG.trace("Registered importers"); LOG.trace("Registering script runners ..."); scriptRunnerRegistrar.register(event); LOG.trace("Registered script runners"); LOG.trace("Registering job factories ..."); jobFactoryRegistrar.register(event); LOG.trace("Registered job factories"); LOG.trace("Registering exception response generators ..."); exceptionResponseGeneratorRegistrar.register(event.getApplicationContext()); LOG.trace("Registered exception response generators"); } RegistryBootstrapper(
      RepositoryCollectionBootstrapper repoCollectionBootstrapper,
      SystemEntityTypeRegistrar systemEntityTypeRegistrar,
      SystemPackageRegistrar systemPackageRegistrar,
      EntityFactoryRegistrar entityFactoryRegistrar,
      SystemRepositoryDecoratorFactoryRegistrar systemRepositoryDecoratorFactoryRegistrar,
      DynamicRepositoryDecoratorFactoryRegistrar dynamicRepositoryDecoratorFactoryRegistrar,
      ImportServiceRegistrar importServiceRegistrar,
      ScriptRunnerRegistrar scriptRunnerRegistrar,
      JobFactoryRegistrar jobFactoryRegistrar,
      ExceptionResponseGeneratorRegistrar exceptionResponseGeneratorRegistrar); void bootstrap(ContextRefreshedEvent event);  }