XMLReader.readXMLFileToString no longer throws a Transformer exception.
This commit is contained in:
@@ -38,7 +38,7 @@ public class BoatXMLReaderTest {
|
||||
try {
|
||||
boatXMLString = XMLReader.readXMLFileToString("mock/mockXML/boatTest.xml", StandardCharsets.UTF_8);
|
||||
|
||||
} catch (TransformerException | XMLReaderException e) {
|
||||
} catch (XMLReaderException e) {
|
||||
throw new InvalidBoatDataException("Could not read boat XML file into a string.", e);
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ public class RaceXMLReaderTest {
|
||||
try {
|
||||
raceXMLString = XMLReader.readXMLFileToString("mock/mockXML/raceTest.xml", StandardCharsets.UTF_8);
|
||||
|
||||
} catch (TransformerException | XMLReaderException e) {
|
||||
} catch (XMLReaderException e) {
|
||||
throw new InvalidRaceDataException("Could not read race XML file into a string.", e);
|
||||
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ public class RegattaXMLReaderTest {
|
||||
try {
|
||||
regattaXMLString = XMLReader.readXMLFileToString("mock/mockXML/regattaTest.xml", StandardCharsets.UTF_8);
|
||||
|
||||
} catch (TransformerException | XMLReaderException e) {
|
||||
} catch (XMLReaderException e) {
|
||||
throw new InvalidRegattaDataException("Could not read regatta XML file into a string.", e);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user