Package gov.nasa.arc.mct.services.config.impl.properties

Examples of gov.nasa.arc.mct.services.config.impl.properties.ArrayProperty.addEntry()


  }
 
  @Test
  public void testArrayMarshalling() throws JAXBException {
    ArrayProperty array = new ArrayProperty("people");
    array.addEntry("john");
    array.addEntry("martha");
   
    String s = marshalObject(array);
    assertTrue(s.contains("<array name=\"people\""));
    assertTrue(s.contains("<entry value=\"john\""));
View Full Code Here


 
  @Test
  public void testArrayMarshalling() throws JAXBException {
    ArrayProperty array = new ArrayProperty("people");
    array.addEntry("john");
    array.addEntry("martha");
   
    String s = marshalObject(array);
    assertTrue(s.contains("<array name=\"people\""));
    assertTrue(s.contains("<entry value=\"john\""));
    assertTrue(s.contains("<entry value=\"martha\""));
View Full Code Here

  public void testServiceMarshalling() throws JAXBException {
    Service service = new Service();
    service.setServiceID("myPID");
    service.getSimpleProps().add(new SimpleProperty("x", "y"));
    ArrayProperty array = new ArrayProperty("people");
    array.addEntry("john");
    array.addEntry("martha");
    service.getArrayProps().add(array);
   
    String s = marshalObject(service);
    assertTrue(s.contains("<service pid=\"myPID\""));
View Full Code Here

    Service service = new Service();
    service.setServiceID("myPID");
    service.getSimpleProps().add(new SimpleProperty("x", "y"));
    ArrayProperty array = new ArrayProperty("people");
    array.addEntry("john");
    array.addEntry("martha");
    service.getArrayProps().add(array);
   
    String s = marshalObject(service);
    assertTrue(s.contains("<service pid=\"myPID\""));
    assertTrue(s.contains("<property"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.