Package com.alexgilleran.icesoap.parser.test.xmlclasses

Examples of com.alexgilleran.icesoap.parser.test.xmlclasses.AddressChild


   */
  @Test
  public void testInheritedFields() throws XMLParsingException {
    IceSoapParser<AddressChild> parser = new IceSoapParserImpl<AddressChild>(AddressChild.class);

    AddressChild address = parser.parse(SampleXml.getPurchaseOrder());

    // These should work no matter what
    assertEquals("CA", address.getState());
    assertEquals(10999, address.getZip());
    assertEquals("USA", address.getCountry());

    // If inheritance isn't working, these will fail.
    assertEquals("Shipping", address.getType());
    assertEquals("Ellen Adams", address.getName());
    assertEquals("123 Maple Street", address.getStreet());
    assertEquals("Mill Valley", address.getCity());

  }
View Full Code Here

TOP

Related Classes of com.alexgilleran.icesoap.parser.test.xmlclasses.AddressChild

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.