PolicyDecisionPointImpl implements PolicyDecisionPoint { void undeployPolicy(PDP pdp, Evaluatable policy) { final PolicyRepository repo = (PolicyRepository) pdp .getPolicyRepository(); repo.undeploy(policy.getId()); } 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);  }
@Test public void testUndeployPolicy() throws AuditException { final XacmlRequest xacmlRequest = new XacmlRequest(); pdp.deployPolicies(simplePDP, policies, xacmlRequest, false); pdp.undeployPolicy(simplePDP, policy); assertEquals( "NOT_APPLICABLE", pdp.evaluateRequest(simplePDP, request, new LinkedList<Evaluatable>(), xacmlRequest) .getPdpDecision()); }
@Test public void testUndeployPolicy() throws AuditException { XacmlRequest xacmlRequest = new XacmlRequest(); pdp.deployPolicies(simplePDP, policies, xacmlRequest, false); pdp.undeployPolicy(simplePDP, policy); assertEquals( "NOT_APPLICABLE", pdp.evaluateRequest(simplePDP, request, new LinkedList<Evaluatable>(), xacmlRequest).getPdpDecision()); }