Examples of ResponseCtx


Examples of org.jboss.security.xacml.sunxacml.ctx.ResponseCtx

         pdp.createInternalPDP();
        
         String requestFile = null;
         if(i < 10)
            requestFile = mandatoryBase + "IIE00" + i + "Request.xml";
         ResponseCtx actualResponse = pdp.evaluate(requestFile);
         assertNotNull("Response for" + i,actualResponse);
        
         String responseFile = null;
         if(i < 10)
            responseFile = mandatoryBase + "IIE00" + i + "Response.xml";
        
         InputStream responseStream = new FileInputStream(responseFile);
         if(responseStream  == null)
            throw new IllegalStateException("responseStream for IIE0"+ i + " is null");
         ResponseCtx expectedResponse = ResponseCtx.getInstance(responseStream);

         Result actualResult = (Result) actualResponse.getResults().iterator().next();
         Result expectedResult = (Result) expectedResponse.getResults().iterator().next();
         assertEquals("IIE0"+i, expectedResult.getDecision(),actualResult.getDecision());
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.