@Test(expected = SAXException.class) public void shouldHandleExceptionsWhileParsingItemsDefinition() throws Throwable { FireflyExtension extensionWithInvalidItemsXml = createExtension(EXTENSION_WITH_INVALID_ITEMS_XML, false); try { extensionWithInvalidItemsXml.getItemsDefinitionHash(); } catch (RuntimeException e) { unwrapException(e); } }
String getItemsDefinitionHash() { return getHashFromFile(new File(rootPath, "resources/" + name + "-items.xml"), NO_ITEMS_XML_MD5); }
FireflyExtension { String getItemsDefinitionHash() { return getHashFromFile(new File(rootPath, "resources/" + name + "-items.xml"), NO_ITEMS_XML_MD5); } }
FireflyExtension { String getItemsDefinitionHash() { return getHashFromFile(new File(rootPath, "resources/" + name + "-items.xml"), NO_ITEMS_XML_MD5); } FireflyExtension(String name, File rootPath, FireflyExtensionRepository fireflyExtensionRepository, MigrationRepository migrationRepository, boolean relaxedMode); }
FireflyExtension { String getItemsDefinitionHash() { return getHashFromFile(new File(rootPath, "resources/" + name + "-items.xml"), NO_ITEMS_XML_MD5); } FireflyExtension(String name, File rootPath, FireflyExtensionRepository fireflyExtensionRepository, MigrationRepository migrationRepository, boolean relaxedMode); boolean isUpdateRequired(); boolean isHmcResetRequired(); void onHmcReset(PK migration); void onUpdate(PK migration); @Override String toString(); }
FireflyExtension { String getItemsDefinitionHash() { return getHashFromFile(new File(rootPath, "resources/" + name + "-items.xml"), NO_ITEMS_XML_MD5); } FireflyExtension(String name, File rootPath, FireflyExtensionRepository fireflyExtensionRepository, MigrationRepository migrationRepository, boolean relaxedMode); boolean isUpdateRequired(); boolean isHmcResetRequired(); void onHmcReset(PK migration); void onUpdate(PK migration); @Override String toString();  }