protected static void testNumMship(Group g, Field f, int m, int i, int e) { int gotM = g.getMemberships().size(); int gotI = g.getImmediateMemberships().size(); int gotE = g.getEffectiveMemberships().size(); Assert.assertTrue( g.getName() + " mships == " + gotM + " (exp " + m + ")", gotM == m ); Assert.assertTrue( g.getName() + " imm mships == " + gotI + " (exp " + i + ")", gotI == i ); Assert.assertTrue( g.getName() + " eff mships == " + gotE + " (exp " + e + ")", gotE == e ); }
protected static void testNumMship( Group g, String list, int m, int i, int e) { try { testNumMship(g, FieldFinder.find(list), m, i, e); } catch (Exception e0) { Assert.fail(e0.getMessage()); } }
  protected static void testNumMship(Group g, Field f, int m, int i, int e) {    int gotM = g.getMemberships().size();    int gotI = g.getImmediateMemberships().size();    int gotE = g.getEffectiveMemberships().size();    Assert.assertTrue(      g.getName() + " mships == " + gotM + " (exp " + m + ")", gotM == m    );    Assert.assertTrue(      g.getName() + " imm mships == " + gotI + " (exp " + i + ")", gotI == i    );    Assert.assertTrue(      g.getName() + " eff mships == " + gotE + " (exp " + e + ")", gotE == e    );  } // protected static void testNumMship(g, f, m, i, e) 