@Test public void shouldRequireHmcReset() throws Exception { given(extensionAlice.isHmcResetRequired()).willReturn(true); boolean resetRequired = fireflySystem.isHmcResetRequired(); assertTrue(resetRequired); }
public boolean isHmcResetRequired() { boolean resetRequired = false; Iterator<FireflyExtension> extensionIterator = extensions.iterator(); while (!resetRequired && extensionIterator.hasNext()) { resetRequired = extensionIterator.next().isHmcResetRequired(); } return resetRequired; }
FireflySystem { public boolean isHmcResetRequired() { boolean resetRequired = false; Iterator<FireflyExtension> extensionIterator = extensions.iterator(); while (!resetRequired && extensionIterator.hasNext()) { resetRequired = extensionIterator.next().isHmcResetRequired(); } return resetRequired; } }
FireflySystem { public boolean isHmcResetRequired() { boolean resetRequired = false; Iterator<FireflyExtension> extensionIterator = extensions.iterator(); while (!resetRequired && extensionIterator.hasNext()) { resetRequired = extensionIterator.next().isHmcResetRequired(); } return resetRequired; } FireflySystem(HybrisAdapter hybrisAdapter, List<FireflyExtension> extensions); }
FireflySystem { public boolean isHmcResetRequired() { boolean resetRequired = false; Iterator<FireflyExtension> extensionIterator = extensions.iterator(); while (!resetRequired && extensionIterator.hasNext()) { resetRequired = extensionIterator.next().isHmcResetRequired(); } return resetRequired; } FireflySystem(HybrisAdapter hybrisAdapter, List<FireflyExtension> extensions); void update(FireflyMigrationModel migration); void setBaseline(FireflyMigrationModel migration); boolean isHmcResetRequired(); boolean isUpdateRequired(); Map<String, File> getExtensionPaths(); }
FireflySystem { public boolean isHmcResetRequired() { boolean resetRequired = false; Iterator<FireflyExtension> extensionIterator = extensions.iterator(); while (!resetRequired && extensionIterator.hasNext()) { resetRequired = extensionIterator.next().isHmcResetRequired(); } return resetRequired; } FireflySystem(HybrisAdapter hybrisAdapter, List<FireflyExtension> extensions); void update(FireflyMigrationModel migration); void setBaseline(FireflyMigrationModel migration); boolean isHmcResetRequired(); boolean isUpdateRequired(); Map<String, File> getExtensionPaths();  }