use of org.apache.cxf.aegis.custom.types.NoDefaultConstructorBeanTypeRegistrar in project cxf by apache.
the class CustomBeansTest method testClientSetup.
// CXF-2093 reports an explosion with this case.
@Test
public void testClientSetup() throws Exception {
JaxWsProxyFactoryBean clientFactory = new JaxWsProxyFactoryBean();
clientFactory.setAddress("local:not-really");
clientFactory.setServiceClass(Service.class);
AegisDatabinding dataBinding = new AegisDatabinding();
NoDefaultConstructorBeanTypeRegistrar beanRegistrar = new NoDefaultConstructorBeanTypeRegistrar();
beanRegistrar.setDataBinding(dataBinding);
beanRegistrar.register();
NoDefaultConstructorBeanKeyTypeRegistrar beanKeyRegistrar = new NoDefaultConstructorBeanKeyTypeRegistrar();
beanKeyRegistrar.setDataBinding(dataBinding);
beanKeyRegistrar.register();
clientFactory.setDataBinding(dataBinding);
clientFactory.create();
String uri = dataBinding.getAegisContext().getTypeMapping().getMappingIdentifierURI();
assertNotSame(DefaultTypeMapping.DEFAULT_MAPPING_URI, uri);
}
Aggregations