< prev index next >

test/javax/xml/jaxp/functional/org/xml/sax/ptests/ParserAdapterTest.java

Print this page




 248     public void parse02() throws Exception {
 249         try(FileInputStream fis = new FileInputStream(XML_DIR + "invalid.xml")) {
 250             InputSource is = new InputSource(fis);
 251             parserAdapter.parse(is);
 252         }
 253     }
 254 
 255     /**
 256      * Parse a well-formatter XML with ParserAdapter.
 257      *
 258      * @throws Exception If any errors occur.
 259      */
 260     @Test
 261     public void parse03() throws Exception {
 262         try(FileInputStream fis = new FileInputStream(XML_DIR + "correct.xml")) {
 263             InputSource is = new InputSource(fis);
 264             parserAdapter.parse(is);
 265         }
 266     }
 267 }
 268 
 269 


 248     public void parse02() throws Exception {
 249         try(FileInputStream fis = new FileInputStream(XML_DIR + "invalid.xml")) {
 250             InputSource is = new InputSource(fis);
 251             parserAdapter.parse(is);
 252         }
 253     }
 254 
 255     /**
 256      * Parse a well-formatter XML with ParserAdapter.
 257      *
 258      * @throws Exception If any errors occur.
 259      */
 260     @Test
 261     public void parse03() throws Exception {
 262         try(FileInputStream fis = new FileInputStream(XML_DIR + "correct.xml")) {
 263             InputSource is = new InputSource(fis);
 264             parserAdapter.parse(is);
 265         }
 266     }
 267 }


< prev index next >