Example #1
0
 public boolean hasMemberInRoles(final User user, final MemberRole... roles) {
   List<User> members = getMembersByRoles(roles);
   for (User u : members) {
     if (u.equals(user)) {
       return true;
     }
   }
   return false;
 }
 @Before
 public void setup() {
   if (user == null) {
     user = new User();
     user.setUsername("fstestuser");
     user.setPassword("fstestpass");
     user.setEmail("*****@*****.**");
   }
 }