@Test public void testAddMemberAgain() throws Exception { Group grp = createGroup(); List<String> memberPaths = createMembers(grp, NUM_USERS); root.commit(); Tree groupTree = getTree(grp); for (String path : memberPaths) { Tree memberTree = root.getTree(path); String contentId = getContentID(memberTree); assertFalse(writer.addMember(groupTree, contentId)); } }
boolean addMember(@NotNull Tree groupTree, @NotNull String memberContentId) { Map<String, String> m = Maps.newHashMapWithExpectedSize(1); m.put(memberContentId, "-"); return addMembers(groupTree, m).isEmpty(); }
MembershipWriter { boolean addMember(@NotNull Tree groupTree, @NotNull String memberContentId) { Map<String, String> m = Maps.newHashMapWithExpectedSize(1); m.put(memberContentId, "-"); return addMembers(groupTree, m).isEmpty(); } }
MembershipWriter { boolean addMember(@NotNull Tree groupTree, @NotNull String memberContentId) { Map<String, String> m = Maps.newHashMapWithExpectedSize(1); m.put(memberContentId, "-"); return addMembers(groupTree, m).isEmpty(); }  }
MembershipWriter { boolean addMember(@NotNull Tree groupTree, @NotNull String memberContentId) { Map<String, String> m = Maps.newHashMapWithExpectedSize(1); m.put(memberContentId, "-"); return addMembers(groupTree, m).isEmpty(); }   }
MembershipWriter { boolean addMember(@NotNull Tree groupTree, @NotNull String memberContentId) { Map<String, String> m = Maps.newHashMapWithExpectedSize(1); m.put(memberContentId, "-"); return addMembers(groupTree, m).isEmpty(); }   static final int DEFAULT_MEMBERSHIP_THRESHOLD; }