98 }
99 }
100
101 @Test
102 public void testOccursUnboundedMaxMinErrorMin() throws Exception {
103 printMethodName();
104
105 File xmlFile = new File(getClass().getResource("occurs-unbounded-error-min.xml").getFile());
106 try {
107 errorFound = false;
108 documentBuilder.parse(xmlFile);
109 } catch (SAXException ex) {
110 Assert.fail(ex.getMessage());
111 }
112 if (!errorFound) {
113 Assert.fail("Expected validation error not reported");
114 }
115 }
116
117 }
118
|
98 }
99 }
100
101 @Test
102 public void testOccursUnboundedMaxMinErrorMin() throws Exception {
103 printMethodName();
104
105 File xmlFile = new File(getClass().getResource("occurs-unbounded-error-min.xml").getFile());
106 try {
107 errorFound = false;
108 documentBuilder.parse(xmlFile);
109 } catch (SAXException ex) {
110 Assert.fail(ex.getMessage());
111 }
112 if (!errorFound) {
113 Assert.fail("Expected validation error not reported");
114 }
115 }
116
117 }
|