This class also provides a commandline XACML validation utility.
NOTE: Although instances may be re-used, this class is not thread-safe. Use the copy() method to support concurrent parsing.
copy()
113114115116117118119120
} @Test public void testParseGoodRootGoodContentValidationFalse() throws IOException, SAXException, ValidationException { PolicyParser parser = new MockPolicyParser(); parser.parse(StreamUtility.getStream(POLICY_GOODENOUGH), false); }
120121122123124125126127
} @Test public void testParseGoodRootGoodContentValidationTrue() throws IOException, SAXException, ValidationException { PolicyParser parser = new MockPolicyParser(); parser.parse(StreamUtility.getStream(POLICY_GOODENOUGH), true); }
127128129130131132133134
} @Test public void testParseGoodRootGoodContentValidationTrueWithCopy() throws IOException, SAXException, ValidationException { PolicyParser parser = new MockPolicyParser(); parser.copy().parse(StreamUtility.getStream(POLICY_GOODENOUGH), true); }