139140141142143144145
} @Test(expected=ValidationException.class) public void testValidatePolicyBad() throws IOException, SAXException, ValidationException { validatePolicy(new MockPolicyParser(), POLICY_QUESTIONABLE); }
145146147148149150151
} @Test public void testValidatePolicyGood() throws IOException, SAXException, ValidationException { validatePolicy(new MockPolicyParser(), POLICY_GOODENOUGH); }
176177178179180181182183
} @Test(expected=ValidationException.class) public void testValidateReservedPolicyBad() throws IOException, SAXException, ValidationException { validateReserved(new MockPolicyParser(), new String[] { "POLICY", POLICY_QUESTIONABLE }); }
183184185186187188189190
} @Test public void testValidateReservedPolicyGood() throws IOException, SAXException, ValidationException { validateReserved(new MockPolicyParser(), new String[] { "POLICY", POLICY_GOODENOUGH }); }
190191192193194195196197
} @Test(expected=ValidationException.class) public void testValidateReservedRelsExtBad() throws IOException, SAXException, ValidationException { validateReserved(new MockPolicyParser(), new String[] { "RELS-EXT", "" }); }
197198199200201202203204
} @Test(expected=ValidationException.class) public void testValidateReservedRelsIntBad() throws IOException, SAXException, ValidationException { validateReserved(new MockPolicyParser(), new String[] { "RELS-INT", "" }); }
203204205206207208209210
new String[] { "RELS-INT", "" }); } @Test public void testValidateReservedRelsExtGood() throws IOException, SAXException, ValidationException { validateReserved(new MockPolicyParser(), new String[] { "RELS-EXT", RELSEXT_GOOD }); }
210211212213214215216217
} @Test public void testValidateReservedRelsIntGood() throws IOException, SAXException, ValidationException { validateReserved(new MockPolicyParser(), new String[] { "RELS-INT", RELSINT_GOOD }); }
217218219220221222223224225226
} @Test public void testValidateReservedAllGood() throws IOException, SAXException, ValidationException { validateReserved(new MockPolicyParser(), new String[] { "POLICY", POLICY_GOODENOUGH, "RELS-EXT", RELSEXT_GOOD, "RELS-INT", RELSINT_GOOD}); }