diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-09-21 14:38:19 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-09-21 14:38:19 +0200 |
commit | 1005aa3a90683235a985b365ae9b4b7446f17797 (patch) | |
tree | c6c72912b93b8d8f4b6d0cc1d24ce0da04fbb439 /sonar-testing-harness/src | |
parent | f8b016eaef578571f2b9d2f346a9949b779fc829 (diff) | |
download | sonarqube-1005aa3a90683235a985b365ae9b4b7446f17797.tar.gz sonarqube-1005aa3a90683235a985b365ae9b4b7446f17797.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-testing-harness/src')
-rw-r--r-- | sonar-testing-harness/src/main/java/org/sonar/test/TestUtils.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-testing-harness/src/main/java/org/sonar/test/TestUtils.java b/sonar-testing-harness/src/main/java/org/sonar/test/TestUtils.java index 3c73db9cf53..55245b5f56b 100644 --- a/sonar-testing-harness/src/main/java/org/sonar/test/TestUtils.java +++ b/sonar-testing-harness/src/main/java/org/sonar/test/TestUtils.java @@ -133,13 +133,13 @@ public final class TestUtils { assertThat(file.exists(), is(true)); } - public static void assertSimilarXml(String expectedXml, String xml) throws IOException, SAXException { + public static void assertSimilarXml(String expectedXml, String xml) throws Exception { Diff diff = isSimilarXml(expectedXml, xml); String message = "Diff: " + diff.toString() + CharUtils.LF + "XML: " + xml; assertTrue(message, diff.similar()); } - static Diff isSimilarXml(String expectedXml, String xml) throws IOException, SAXException { + static Diff isSimilarXml(String expectedXml, String xml) throws Exception { XMLUnit.setIgnoreWhitespace(true); return XMLUnit.compareXML(xml, expectedXml); } |