< prev index next >

test/javax/xml/jaxp/unittest/stream/XMLEventWriterTest/XMLEventWriterTest.java

Print this page




 139                     }
 140                 }
 141 
 142                 // Output event
 143                 if (xmlw != null) {
 144                     xmlw.add(event);
 145                 }
 146             }
 147 
 148             // Read to first <product> element in document 1
 149             // without writing to result document
 150             xmlw.close();
 151 
 152             // expected success
 153         } catch (Exception ex) {
 154             ex.printStackTrace();
 155             Assert.fail(ex.toString());
 156         }
 157     }
 158 }
 159 


 139                     }
 140                 }
 141 
 142                 // Output event
 143                 if (xmlw != null) {
 144                     xmlw.add(event);
 145                 }
 146             }
 147 
 148             // Read to first <product> element in document 1
 149             // without writing to result document
 150             xmlw.close();
 151 
 152             // expected success
 153         } catch (Exception ex) {
 154             ex.printStackTrace();
 155             Assert.fail(ex.toString());
 156         }
 157     }
 158 }

< prev index next >