}
}
public void testMandatoryConformance_FunctionEvaluation_1_through_232() throws Exception
{
TestPDP pdp = null;
for(int i =1; i<=232; i++)
{
System.out.println("Checking FunctionEvaluation_conformance:" + i);
if(i == 3 || i == 14 || i == 12) //Policy/request errors
{
System.out.println("Ignoring FunctionEvaluation_conformance:" + i);
continue;
}
if(i == 23 || i == 54 || i == 55 || i == 88 || i == 89 ||
i == 92 || i == 93 || i == 98 || i == 99) //Test is not present
continue;
String fileName = null;
if(i < 10)
fileName = mandatoryBase + "IIC00" + i + "Policy.xml";
else if( i < 100)
fileName = mandatoryBase + "IIC0" + i + "Policy.xml";
else
fileName = mandatoryBase + "IIC" + i + "Policy.xml";
String[] policies = new String[] {fileName};
pdp = new TestPDP(policies);
pdp.createInternalPDP();
String requestFile = null;
if(i < 10)
requestFile = mandatoryBase + "IIC00" + i + "Request.xml";
else if(i < 100)
requestFile = mandatoryBase + "IIC0" + i + "Request.xml";
else
requestFile = mandatoryBase + "IIC" + i + "Request.xml";
ResponseCtx actualResponse = pdp.evaluate(requestFile);
assertNotNull("Response for" + i,actualResponse);
String responseFile = null;
if(i < 10)
responseFile = mandatoryBase + "IIC00" + i + "Response.xml";