< prev index next >

test/javax/xml/jaxp/unittest/validation/Bug4996446.java

Print this page




  73         if (errorHandler.errorCounter == 0) {
  74             Assert.fail(" No Errors reported: " + errorHandler.errorCounter);
  75         }
  76         return;
  77     }
  78 }
  79 
  80 class ErrorHandler extends DefaultHandler {
  81     public int errorCounter = 0;
  82 
  83     public void error(SAXParseException e) throws SAXException {
  84         // System.out.println(e);
  85         errorCounter++;
  86     }
  87 
  88     public void fatalError(SAXParseException e) throws SAXException {
  89         // System.out.println(e);
  90         errorCounter++;
  91     }
  92 }
  93 


  73         if (errorHandler.errorCounter == 0) {
  74             Assert.fail(" No Errors reported: " + errorHandler.errorCounter);
  75         }
  76         return;
  77     }
  78 }
  79 
  80 class ErrorHandler extends DefaultHandler {
  81     public int errorCounter = 0;
  82 
  83     public void error(SAXParseException e) throws SAXException {
  84         // System.out.println(e);
  85         errorCounter++;
  86     }
  87 
  88     public void fatalError(SAXParseException e) throws SAXException {
  89         // System.out.println(e);
  90         errorCounter++;
  91     }
  92 }

< prev index next >