Beispiel #1
0
 private void addRoles(User user, String... roles) {
   user.getRoles().addAll(Arrays.asList(roles));
 }
Beispiel #2
0
 private User newUser(String name) {
   User user = JsontestFactory.eINSTANCE.createUser();
   user.setName(name);
   return user;
 }