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