assertTrue(result.getStatus().getCode().iterator().next().equals(Status.STATUS_OK));
}
public void testIsWithinDistance1() {
PDP pdp = TestSupport.getPDP(TestSupport.getGeoXACMLFNFor("scalar",
"IsWithinDistancePolicy.xml"));
RequestCtx request = null;
try {
request = RequestCtx.getInstance(new FileInputStream(TestSupport.getGeoXACMLFNFor(
"scalar", "IsWithinDistanceRequest1.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));
}