Package org.jugile.daims

Source Code of org.jugile.daims.CollectionPropsTest

package org.jugile.daims;

import org.jugile.proto2.domain.Domain;
import org.jugile.proto2.domain.Person;
import org.jugile.proto2.domain.PersonCollection;
import org.jugile.util.JugileTestCase;

public class CollectionPropsTest extends JugileTestCase {
 
  public void testProps() {
    Domain d = Domain.getDomain();
    PersonCollection pc = new PersonCollection();
    pc.add(d.createPerson().setName("p1"), "p1");
    pc.add(d.createPerson().setName("p2"), "p2");
    pc.add(d.createPerson().setName("p3"), "p3");
    for (Person p : pc) {
      print(p.getName() + "=" + pc.getProp(p.id()));
    }
  }
 
}
TOP

Related Classes of org.jugile.daims.CollectionPropsTest

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.