@Test public void groupSystemConfigGroupsTest() { createConfigGroupsWithOldConfigurationService(); migrateConfigGroups(); checkConfigGroupsWithNewConfigurationService(); }
public void groupSystemConfigGroups() { try { startBatch(); system.out().println("Moving existing configurations to their type directories..."); groupConfigGroupsByType(); system.out().println("Moving existing repositories configurations to their space directories..."); groupRepositoryConfigGroupsBySpace(); } finally { endBatch(); } }
ConfigGroupsMigrationService { public void groupSystemConfigGroups() { try { startBatch(); system.out().println("Moving existing configurations to their type directories..."); groupConfigGroupsByType(); system.out().println("Moving existing repositories configurations to their space directories..."); groupRepositoryConfigGroupsBySpace(); } finally { endBatch(); } } }
ConfigGroupsMigrationService { public void groupSystemConfigGroups() { try { startBatch(); system.out().println("Moving existing configurations to their type directories..."); groupConfigGroupsByType(); system.out().println("Moving existing repositories configurations to their space directories..."); groupRepositoryConfigGroupsBySpace(); } finally { endBatch(); } } ConfigGroupsMigrationService(); @Inject  ConfigGroupsMigrationService(final @Named("system") Repository systemRepository,
                                        final ConfigGroupMarshaller marshaller,
                                        final @Named("configIO") IOService ioService,
                                        final @Named("systemFS") FileSystem fs,
                                        final SystemAccess system,
                                        final User identity); }
ConfigGroupsMigrationService { public void groupSystemConfigGroups() { try { startBatch(); system.out().println("Moving existing configurations to their type directories..."); groupConfigGroupsByType(); system.out().println("Moving existing repositories configurations to their space directories..."); groupRepositoryConfigGroupsBySpace(); } finally { endBatch(); } } ConfigGroupsMigrationService(); @Inject  ConfigGroupsMigrationService(final @Named("system") Repository systemRepository,
                                        final ConfigGroupMarshaller marshaller,
                                        final @Named("configIO") IOService ioService,
                                        final @Named("systemFS") FileSystem fs,
                                        final SystemAccess system,
                                        final User identity); void groupSystemConfigGroups(); }
ConfigGroupsMigrationService { public void groupSystemConfigGroups() { try { startBatch(); system.out().println("Moving existing configurations to their type directories..."); groupConfigGroupsByType(); system.out().println("Moving existing repositories configurations to their space directories..."); groupRepositoryConfigGroupsBySpace(); } finally { endBatch(); } } ConfigGroupsMigrationService(); @Inject  ConfigGroupsMigrationService(final @Named("system") Repository systemRepository,
                                        final ConfigGroupMarshaller marshaller,
                                        final @Named("configIO") IOService ioService,
                                        final @Named("systemFS") FileSystem fs,
                                        final SystemAccess system,
                                        final User identity); void groupSystemConfigGroups();  }