@Test public void testAddMemberExceedThreshold() throws Exception { Group grp = createGroup(); for (String contentId : createIdMap(0, NUM_USERS).keySet()) { writer.addMember(getTree(grp), contentId); } root.commit(); assertContentStructure(getTree(grp)); }
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; }