@Test public void testGetClusteredModels() { List<Checkpoint> checkpoints = ImmutableList.of( new org.sonatype.nexus.upgrade.example.CheckpointFoo(), new org.sonatype.nexus.upgrade.example.CheckpointBar(), new org.sonatype.nexus.upgrade.example.CheckpointWibble() ); List<Upgrade> upgrades = ImmutableList.of( new org.sonatype.nexus.upgrade.example.UpgradeBar_1_1(), new org.sonatype.nexus.upgrade.example.UpgradeWibble_2_0(), new org.sonatype.nexus.upgrade.example.UpgradeFoo_1_1() ); UpgradeManager upgradeManager = createUpgradeManager(checkpoints, upgrades); assertThat(upgradeManager.getClusteredModels(), containsInAnyOrder("bar", "wibble")); }
public Set<String> getClusteredModels() { return clusteredModels; }
UpgradeManager extends ComponentSupport { public Set<String> getClusteredModels() { return clusteredModels; } }
UpgradeManager extends ComponentSupport { public Set<String> getClusteredModels() { return clusteredModels; } @Inject  UpgradeManager(final List<Checkpoint> managedCheckpoints,
                        final List<Upgrade> managedUpgrades,
                        @Named("${nexus.upgrade.warnOnMissingDependencies:-false}")
                        final boolean warnOnMissingDependencies); }
UpgradeManager extends ComponentSupport { public Set<String> getClusteredModels() { return clusteredModels; } @Inject  UpgradeManager(final List<Checkpoint> managedCheckpoints,
                        final List<Upgrade> managedUpgrades,
                        @Named("${nexus.upgrade.warnOnMissingDependencies:-false}")
                        final boolean warnOnMissingDependencies); Set<String> getLocalModels(); Set<String> getClusteredModels(); List<Upgrade> selectUpgrades(final Map<String, String> modelVersions, final boolean localOnly); List<Checkpoint> selectCheckpoints(final List<Upgrade> upgrades); Map<String, String> latestKnownModelVersions(); String getModel(final Checkpoint checkpoint); Upgrades getMetadata(final Upgrade upgrade); }
UpgradeManager extends ComponentSupport { public Set<String> getClusteredModels() { return clusteredModels; } @Inject  UpgradeManager(final List<Checkpoint> managedCheckpoints,
                        final List<Upgrade> managedUpgrades,
                        @Named("${nexus.upgrade.warnOnMissingDependencies:-false}")
                        final boolean warnOnMissingDependencies); Set<String> getLocalModels(); Set<String> getClusteredModels(); List<Upgrade> selectUpgrades(final Map<String, String> modelVersions, final boolean localOnly); List<Checkpoint> selectCheckpoints(final List<Upgrade> upgrades); Map<String, String> latestKnownModelVersions(); String getModel(final Checkpoint checkpoint); Upgrades getMetadata(final Upgrade upgrade);  }