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

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


  @Test
  public void testListOfStrings() throws XMLParsingException {
    IceSoapParser<Alert> parser = new IceSoapParserImpl<Alert>(Alert.class);

    Alert testResult = parser.parse(SampleXml.getListOfStringsXML());

    assertEquals(1, testResult.getId());
    assertEquals("Jonas", testResult.getContact());
    assertEquals("some_email", testResult.getEmail());
    assertEquals("555-555555", testResult.getPhone());

    assertEquals("Fire", testResult.getActiveGroupsPerEmail().get(0));
    assertEquals(null, testResult.getActiveGroupsPerEmail().get(1));
    assertEquals("OpenClose", testResult.getActiveGroupsPerEmail().get(2));

    assertEquals(SampleXml.SMS_ALERT_GROUP_1, testResult.getActiveGroupsPerSMS().get(0));
    assertEquals(SampleXml.SMS_ALERT_GROUP_2, testResult.getActiveGroupsPerSMS().get(1));
  }
View Full Code Here

TOP

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

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.