@Test public void testTryPolicy() throws TryPolicyException { final String c32Xml = ""; final String xacmlPolicy = ""; final String segmentedC32 = "Segmented C32"; final String purposeOfUse = "TREAT"; final TryPolicyService service = new TryPolicyService(wsdlURL, serviceName); final TryPolicyPortType port = service.getTryPolicyServicePort(); when(policyTrying.tryPolicy(c32Xml, xacmlPolicy, purposeOfUse)) .thenReturn(segmentedC32); final String result = port.tryPolicy(c32Xml, xacmlPolicy, purposeOfUse); assertEquals(segmentedC32, result); }
@Override public String tryPolicy(String c32Xml, String xacmlPolicy, String purposeOfUse) { logger.info("Executing operation tryPolicy"); String segmentedC32 = null; try { segmentedC32 = policyTrying.tryPolicy(c32Xml, xacmlPolicy, purposeOfUse); } catch (final TryPolicyException e) { logger.debug(e.getMessage(), e); logger.error(e.getMessage()); } return segmentedC32; }
PolicyTryingServiceImpl implements TryPolicyPortType { @Override public String tryPolicy(String c32Xml, String xacmlPolicy, String purposeOfUse) { logger.info("Executing operation tryPolicy"); String segmentedC32 = null; try { segmentedC32 = policyTrying.tryPolicy(c32Xml, xacmlPolicy, purposeOfUse); } catch (final TryPolicyException e) { logger.debug(e.getMessage(), e); logger.error(e.getMessage()); } return segmentedC32; } }
PolicyTryingServiceImpl implements TryPolicyPortType { @Override public String tryPolicy(String c32Xml, String xacmlPolicy, String purposeOfUse) { logger.info("Executing operation tryPolicy"); String segmentedC32 = null; try { segmentedC32 = policyTrying.tryPolicy(c32Xml, xacmlPolicy, purposeOfUse); } catch (final TryPolicyException e) { logger.debug(e.getMessage(), e); logger.error(e.getMessage()); } return segmentedC32; } PolicyTryingServiceImpl(PolicyTrying tryPolicy); }
PolicyTryingServiceImpl implements TryPolicyPortType { @Override public String tryPolicy(String c32Xml, String xacmlPolicy, String purposeOfUse) { logger.info("Executing operation tryPolicy"); String segmentedC32 = null; try { segmentedC32 = policyTrying.tryPolicy(c32Xml, xacmlPolicy, purposeOfUse); } catch (final TryPolicyException e) { logger.debug(e.getMessage(), e); logger.error(e.getMessage()); } return segmentedC32; } PolicyTryingServiceImpl(PolicyTrying tryPolicy); @Override String tryPolicy(String c32Xml, String xacmlPolicy,
			String purposeOfUse); }
PolicyTryingServiceImpl implements TryPolicyPortType { @Override public String tryPolicy(String c32Xml, String xacmlPolicy, String purposeOfUse) { logger.info("Executing operation tryPolicy"); String segmentedC32 = null; try { segmentedC32 = policyTrying.tryPolicy(c32Xml, xacmlPolicy, purposeOfUse); } catch (final TryPolicyException e) { logger.debug(e.getMessage(), e); logger.error(e.getMessage()); } return segmentedC32; } PolicyTryingServiceImpl(PolicyTrying tryPolicy); @Override String tryPolicy(String c32Xml, String xacmlPolicy,
			String purposeOfUse);  }