use of org.apache.cxf.tests.inherit.Inherit in project cxf by apache.
the class ClientServerMiscTest method testInheritedTypesInOtherPackage.
@Test
public void testInheritedTypesInOtherPackage() throws Exception {
InheritService serv = new InheritService();
Inherit port = serv.getInheritPort();
updateAddressPort(port, PORT);
ObjectInfo obj = port.getObject(0);
assertNotNull(obj);
assertNotNull(obj.getBaseObject());
assertEquals("A", obj.getBaseObject().getName());
assertTrue(obj.getBaseObject() instanceof SubTypeA);
obj = port.getObject(1);
assertNotNull(obj);
assertNotNull(obj.getBaseObject());
assertEquals("B", obj.getBaseObject().getName());
assertTrue(obj.getBaseObject() instanceof SubTypeB);
}
Aggregations