Membership uofc_i2_subj0 = MembershipHelper.getEff(s, uofc, subj0, "members", 1, i2); MembershipHelper.testParent(uofc_i2, uofc_i2_subj0); Set children = new LinkedHashSet(); children.add(uofc_i2_subj0);
Set uofc_i2_subj0 = MembershipHelper.getEff(s, uofc, subj0, "members", 1, i2); Set children      = new LinkedHashSet(); Iterator iter = uofc_i2_subj0.iterator(); while (iter.hasNext()) { Membership eff = (Membership) iter.next(); MembershipHelper.testParent(uofc_i2, eff); children.add(eff); }
  public void testParentAndChildMemberships() {    LOG.info("testParentAndChildMemberships");    MembershipHelper.testNumMship(i2   , "members", 0, 0, 0);    MembershipHelper.testNumMship(uofc , "members", 0, 0, 0);    GroupHelper.addMember(uofc, i2.toSubject(), "members");    MembershipHelper.testImm(s, uofc , i2.toSubject(), "members");     MembershipHelper.testNumMship(i2   , "members", 0, 0, 0);    MembershipHelper.testNumMship(uofc , "members", 1, 1, 0);    Membership uofc_i2 = MembershipHelper.getImm(s, uofc, i2.toSubject(), "members");    MembershipHelper.testNoParent(uofc_i2);    MembershipHelper.testNoChildren(uofc_i2);    GroupHelper.addMember(i2, subj0, "members");    MembershipHelper.testImm(s, i2   , subj0          , "members");    MembershipHelper.testImm(s, uofc , i2.toSubject() , "members");     MembershipHelper.testEff(s, uofc,  subj0          , "members", i2, 1);    MembershipHelper.testNumMship(i2   , "members", 1, 1, 0);    MembershipHelper.testNumMship(uofc , "members", 2, 1, 1);    Membership i2_subj0 = MembershipHelper.getImm(s, i2, subj0, "members");    MembershipHelper.testNoParent(i2_subj0);    MembershipHelper.testNoChildren(i2_subj0);    Membership uofc_i2_subj0 = MembershipHelper.getEff(s, uofc, subj0, "members", 1, i2);    MembershipHelper.testParent(uofc_i2, uofc_i2_subj0);    Set children = new LinkedHashSet();    children.add(uofc_i2_subj0);    MembershipHelper.testChildren(uofc_i2, children);  } // public void testParentAndChildMemberships()