+ compareXMLPayloads(toscaFiles, ymlPayloads);
+ }
+
+ /**
+ * Compare 2 XML strings to see if they have the same content
+ *
+ * @param string1
+ * @param string2
+ * @return true if similar
+ */
+ public boolean compareXMLStrings(String string1, String string2) {
+ boolean similar = false;
+
+ try {
+ similar = new Diff(string1, string2).similar();
+ } catch (SAXException | IOException e) { // NOSONAR
+ similar = true;
+ }
+
+ return similar;
+ }
+
+ public byte[] loadResource(String resourceName) throws IOException {
+ return IOUtils.toByteArray(getResource(resourceName));
+ }