use of org.nhindirect.policy.impl.XMLLexiconPolicyParser in project nhin-d by DirectProject.
the class XMLLexiconPolicyParser_serializeTest method testSerialize_nullStream_assertExecption.
public void testSerialize_nullStream_assertExecption() throws Exception {
boolean exceptionOccured = false;
final XMLLexiconPolicyParser parser = new XMLLexiconPolicyParser();
try {
parser.serialize(mock(PolicyExpression.class), null);
} catch (IllegalArgumentException e) {
exceptionOccured = true;
}
assertTrue(exceptionOccured);
}
Aggregations