assertTrue(result.getStatus().getCode().iterator().next().equals(Status.STATUS_OK));
}
public void testCrosses1() {
PDP pdp = TestSupport.getPDP(TestSupport.getGeoXACMLFNFor("topology", "CrossesPolicy.xml"));
RequestCtx request = null;
try {
request = RequestCtx.getInstance(new FileInputStream(TestSupport.getGeoXACMLFNFor(
"topology", "CrossesRequest1.xml")));
} catch (Exception e) {
e.printStackTrace();
Assert.fail(e.getMessage());
}
ResponseCtx response = pdp.evaluate(request);
Result result = (Result) response.getResults().iterator().next();
assertTrue(result.getDecision() == Result.DECISION_NOT_APPLICABLE);
assertTrue(result.getStatus().getCode().iterator().next().equals(Status.STATUS_OK));
}