86
87 // make sure that the generated XML parses
88 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
89 dbf.setNamespaceAware(true);
90 dbf.newDocumentBuilder().parse(new InputSource(new StringReader(sw.toString())));
91 } catch (XMLStreamException xmlStreamException) {
92 xmlStreamException.printStackTrace();
93 Assert.fail(xmlStreamException.toString());
94 } catch (SAXException saxException) {
95 saxException.printStackTrace();
96 Assert.fail(saxException.toString());
97 } catch (ParserConfigurationException parserConfigurationException) {
98 parserConfigurationException.printStackTrace();
99 Assert.fail(parserConfigurationException.toString());
100 } catch (IOException ioException) {
101 ioException.printStackTrace();
102 Assert.fail(ioException.toString());
103 }
104 }
105 }
106
|
86
87 // make sure that the generated XML parses
88 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
89 dbf.setNamespaceAware(true);
90 dbf.newDocumentBuilder().parse(new InputSource(new StringReader(sw.toString())));
91 } catch (XMLStreamException xmlStreamException) {
92 xmlStreamException.printStackTrace();
93 Assert.fail(xmlStreamException.toString());
94 } catch (SAXException saxException) {
95 saxException.printStackTrace();
96 Assert.fail(saxException.toString());
97 } catch (ParserConfigurationException parserConfigurationException) {
98 parserConfigurationException.printStackTrace();
99 Assert.fail(parserConfigurationException.toString());
100 } catch (IOException ioException) {
101 ioException.printStackTrace();
102 Assert.fail(ioException.toString());
103 }
104 }
105 }
|