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()));
}
}