use of org.apache.neethi.PolicyReference in project cxf by apache.
the class PolicyBuilderTest method testGetPolicyReference.
@Test
public void testGetPolicyReference() throws Exception {
String name = "/samples/test26.xml";
InputStream is = PolicyBuilderTest.class.getResourceAsStream(name);
PolicyReference pr = builder.getPolicyReference(is);
assertEquals("#PolicyA", pr.getURI());
name = "/samples/test27.xml";
is = PolicyBuilderTest.class.getResourceAsStream(name);
pr = builder.getPolicyReference(is);
assertEquals("http://sample.org/test.wsdl#PolicyA", pr.getURI());
}
Aggregations