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

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


  }

  @Test
  public void testPrimitiveObjects() throws XMLParsingException, ParseException {
    IceSoapParser<PrimitiveObjects> parser = new IceSoapParserImpl<PrimitiveObjects>(PrimitiveObjects.class);
    PrimitiveObjects values = parser.parse(SampleXml.getPrimitiveObjects());

    assertEquals(values.getCharValue(), new Character('a'));
    assertEquals(values.getDoubleValue(), new Double(1.6), 0);
    assertEquals(values.getFloatValue(), new Float(1.5), 0);
    assertEquals(values.getIntValue(), new Integer(1));
    assertEquals(values.getLongValue(), new Long(2));

    values = parser.parse(SampleXml.getNilValues());

    assertEquals(values.getCharValue(), null);
    assertEquals(values.getDoubleValue(), null);
    assertEquals(values.getFloatValue(), null);
    assertEquals(values.getIntValue(), null);
    assertEquals(values.getLongValue(), null);
  }
View Full Code Here

TOP

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

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.