Search in sources :

Example 1 with InheritService

use of org.apache.cxf.tests.inherit.InheritService 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);
}
Also used : InheritService(org.apache.cxf.tests.inherit.InheritService) SubTypeB(org.apache.cxf.tests.inherit.objects.SubTypeB) SubTypeA(org.apache.cxf.tests.inherit.objects.SubTypeA) Inherit(org.apache.cxf.tests.inherit.Inherit) ObjectInfo(org.apache.cxf.tests.inherit.types.ObjectInfo) JaxbElementTest(org.apache.cxf.jaxb_element_test.JaxbElementTest) Test(org.junit.Test)

Aggregations

JaxbElementTest (org.apache.cxf.jaxb_element_test.JaxbElementTest)1 Inherit (org.apache.cxf.tests.inherit.Inherit)1 InheritService (org.apache.cxf.tests.inherit.InheritService)1 SubTypeA (org.apache.cxf.tests.inherit.objects.SubTypeA)1 SubTypeB (org.apache.cxf.tests.inherit.objects.SubTypeB)1 ObjectInfo (org.apache.cxf.tests.inherit.types.ObjectInfo)1 Test (org.junit.Test)1