< prev index next >

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

Print this page




 130         }
 131     }
 132 
 133     @Test
 134     public void testOccursMaxMinErrorMinMax() throws Exception {
 135         printMethodName();
 136 
 137         File xmlFile = new File(getClass().getResource("occurs-error-min-max.xml").getFile());
 138         try {
 139             errorFound = false;
 140             documentBuilder.parse(xmlFile);
 141         } catch (SAXException ex) {
 142             Assert.fail(ex.getMessage());
 143         }
 144         if (!errorFound) {
 145             Assert.fail("Expected validation error not reported");
 146         }
 147     }
 148 
 149 }
 150 


 130         }
 131     }
 132 
 133     @Test
 134     public void testOccursMaxMinErrorMinMax() throws Exception {
 135         printMethodName();
 136 
 137         File xmlFile = new File(getClass().getResource("occurs-error-min-max.xml").getFile());
 138         try {
 139             errorFound = false;
 140             documentBuilder.parse(xmlFile);
 141         } catch (SAXException ex) {
 142             Assert.fail(ex.getMessage());
 143         }
 144         if (!errorFound) {
 145             Assert.fail("Expected validation error not reported");
 146         }
 147     }
 148 
 149 }

< prev index next >