use of org.opencastproject.authorization.xacml.XACMLParsingException in project opencast by opencast.
the class AclScannerTest method testCorruptedFileInstall.
@Test
public void testCorruptedFileInstall() throws Exception {
File file = new File(AclScannerTest.class.getResource("/xacml_errors.xml").toURI());
try {
aclScanner.install(file);
fail("Should not be parsed.");
} catch (XACMLParsingException e) {
assertTrue("The file can not be parsed.", e.getCause() instanceof SAXParseException);
}
}
use of org.opencastproject.authorization.xacml.XACMLParsingException in project opencast by opencast.
the class AclScannerTest method testCorruptedFileUpdate.
@Test
public void testCorruptedFileUpdate() throws Exception {
File file = new File(AclScannerTest.class.getResource("/xacml_errors.xml").toURI());
try {
aclScanner.update(file);
fail("Should not be parsed.");
} catch (XACMLParsingException e) {
assertTrue("The file can not be parsed.", e.getCause() instanceof SAXParseException);
}
}
Aggregations