use of org.apache.cxf.ws.policy.PolicyRegistryImpl in project cxf by apache.
the class Wsdl11AttachmentPolicyProviderTest method setUp.
@Before
public void setUp() {
control = EasyMock.createNiceControl();
bus = control.createMock(Bus.class);
bus.getExtension(ConfiguredBeanLocator.class);
EasyMock.expectLastCall().andReturn(null).anyTimes();
AssertionBuilderRegistry abr = new AssertionBuilderRegistryImpl();
abr.setIgnoreUnknownAssertions(false);
PrimitiveAssertionBuilder ab = new PrimitiveAssertionBuilder();
abr.registerBuilder(new QName("http://cxf.apache.org/test/assertions", "A"), ab);
abr.registerBuilder(new QName("http://cxf.apache.org/test/assertions", "B"), ab);
abr.registerBuilder(new QName("http://cxf.apache.org/test/assertions", "C"), ab);
PolicyBuilderImpl pb = new PolicyBuilderImpl();
bus.getExtension(PolicyBuilder.class);
EasyMock.expectLastCall().andReturn(pb).anyTimes();
bus.getExtension(PolicyEngine.class);
EasyMock.expectLastCall().andReturn(null).anyTimes();
pb.setAssertionBuilderRegistry(abr);
app = new Wsdl11AttachmentPolicyProvider();
app.setBuilder(pb);
app.setRegistry(new PolicyRegistryImpl());
control.replay();
}
Aggregations