@Test public void testDeployPoliciesListOfEvaluatable_PERMIT() throws AuditException, DocumentAccessorException { final XacmlRequest xacmlRequest = new XacmlRequest(); final NodeList nodeListMock = mock(NodeList.class); final Document documentMock = mock(Document.class); when(documentXmlConverterMock.loadDocument(anyString())).thenReturn( documentMock); when(documentAccessorMock.getNodeList(eq(documentMock), anyString())) .thenReturn(nodeListMock); final String decision = pdp.evaluateRequest(simplePDP, request, policies, xacmlRequest).getPdpDecision(); assertEquals("PERMIT", decision); }
@Override @Deprecated public XacmlResponse evaluateRequest(PDP pdp, RequestType request, List<Evaluatable> policies, XacmlRequest xacmlRequest) throws AuditException { logger.info("evaluateRequest invoked"); return managePoliciesAndEvaluateRequest(pdp, request, policies, xacmlRequest); }
PolicyDecisionPointImpl implements PolicyDecisionPoint { @Override @Deprecated public XacmlResponse evaluateRequest(PDP pdp, RequestType request, List<Evaluatable> policies, XacmlRequest xacmlRequest) throws AuditException { logger.info("evaluateRequest invoked"); return managePoliciesAndEvaluateRequest(pdp, request, policies, xacmlRequest); } }
PolicyDecisionPointImpl implements PolicyDecisionPoint { @Override @Deprecated public XacmlResponse evaluateRequest(PDP pdp, RequestType request, List<Evaluatable> policies, XacmlRequest xacmlRequest) throws AuditException { logger.info("evaluateRequest invoked"); return managePoliciesAndEvaluateRequest(pdp, request, policies, xacmlRequest); } PolicyDecisionPointImpl(PolicyProvider policyProvider,
			RequestGenerator requestGenerator,
			DocumentAccessor documentAccessor,
			DocumentXmlConverter documentXmlConverter, AuditService auditService);  PolicyDecisionPointImpl(RequestGenerator requestGenerator,
			DocumentAccessor documentAccessor,
			DocumentXmlConverter documentXmlConverter); }
PolicyDecisionPointImpl implements PolicyDecisionPoint { @Override @Deprecated public XacmlResponse evaluateRequest(PDP pdp, RequestType request, List<Evaluatable> policies, XacmlRequest xacmlRequest) throws AuditException { logger.info("evaluateRequest invoked"); return managePoliciesAndEvaluateRequest(pdp, request, policies, xacmlRequest); } PolicyDecisionPointImpl(PolicyProvider policyProvider,
			RequestGenerator requestGenerator,
			DocumentAccessor documentAccessor,
			DocumentXmlConverter documentXmlConverter, AuditService auditService);  PolicyDecisionPointImpl(RequestGenerator requestGenerator,
			DocumentAccessor documentAccessor,
			DocumentXmlConverter documentXmlConverter); @Override synchronized PdpRequestResponse evaluatePolicyForTrying(
			String xacmlPolicy, String purposeOfUse); @Override @Deprecated XacmlResponse evaluateRequest(PDP pdp, RequestType request,
			List<Evaluatable> policies, XacmlRequest xacmlRequest); @Override @Deprecated XacmlResponse evaluateRequest(PDP pdp, RequestType request,
			XacmlRequest xacmlRequest); @Override @Deprecated XacmlResponse evaluateRequest(RequestType request,
			List<Evaluatable> policies, XacmlRequest xacmlRequest); @Override XacmlResponse evaluateRequest(RequestType request,
			XacmlRequest xacmlRequest); @Override XacmlResponse evaluateRequest(XacmlRequest xacmlRequest); }
PolicyDecisionPointImpl implements PolicyDecisionPoint { @Override @Deprecated public XacmlResponse evaluateRequest(PDP pdp, RequestType request, List<Evaluatable> policies, XacmlRequest xacmlRequest) throws AuditException { logger.info("evaluateRequest invoked"); return managePoliciesAndEvaluateRequest(pdp, request, policies, xacmlRequest); } PolicyDecisionPointImpl(PolicyProvider policyProvider,
			RequestGenerator requestGenerator,
			DocumentAccessor documentAccessor,
			DocumentXmlConverter documentXmlConverter, AuditService auditService);  PolicyDecisionPointImpl(RequestGenerator requestGenerator,
			DocumentAccessor documentAccessor,
			DocumentXmlConverter documentXmlConverter); @Override synchronized PdpRequestResponse evaluatePolicyForTrying(
			String xacmlPolicy, String purposeOfUse); @Override @Deprecated XacmlResponse evaluateRequest(PDP pdp, RequestType request,
			List<Evaluatable> policies, XacmlRequest xacmlRequest); @Override @Deprecated XacmlResponse evaluateRequest(PDP pdp, RequestType request,
			XacmlRequest xacmlRequest); @Override @Deprecated XacmlResponse evaluateRequest(RequestType request,
			List<Evaluatable> policies, XacmlRequest xacmlRequest); @Override XacmlResponse evaluateRequest(RequestType request,
			XacmlRequest xacmlRequest); @Override XacmlResponse evaluateRequest(XacmlRequest xacmlRequest);  }