assertMessage("group \"group0\" and \nusers User 0, User 1 \nfrom other groups", 2, 1);
assertMessage("groups \"group0\", \"group1\" \nand \nusers User 0, User 1 \nfrom other groups", 2, 2);
}
public void testMessages_WithUsersInDeletedGroups() throws Exception {
myUserModel.addUser(new MockUser("userName", "aGroup"));
assertMessage("group \"aGroup\" with its 1 user", new Object[]{"aGroup"});
assertMessage("groups \"aGroup\"(1 user) and \"group2\"", new Object[]{"aGroup", "group2"});
myUserModel.addUser(new MockUser("userName1", "aGroup"));
assertMessage("group \"aGroup\" with its 2 users", new Object[]{"aGroup"});
assertMessage("groups \"aGroup\"(2 users) and \"group2\"", new Object[]{"aGroup", "group2"});
assertMessage("group \"aGroup\"(2 users) and user Some Another User",
new Object[]{"aGroup", new MockUser("Some Another User", null)});
}