@Test public void addPermission() { cleanEntity0(); entity0.addPermission(sampleP); final Collection<?> permissions = (HashSet<?>) ReflectionTestUtils.getField(entity0, "permissions"); assertTrue(permissions != null && permissions.contains(sampleP)); }
public void addPermission(final BPermission... p) { if (permissions == null) { permissions = new HashSet<>(); } permissions.addAll(Arrays.asList(p)); }
BRole extends GmsEntity { public void addPermission(final BPermission... p) { if (permissions == null) { permissions = new HashSet<>(); } permissions.addAll(Arrays.asList(p)); } }
BRole extends GmsEntity { public void addPermission(final BPermission... p) { if (permissions == null) { permissions = new HashSet<>(); } permissions.addAll(Arrays.asList(p)); }  }
BRole extends GmsEntity { public void addPermission(final BPermission... p) { if (permissions == null) { permissions = new HashSet<>(); } permissions.addAll(Arrays.asList(p)); }  void addPermission(final BPermission... p); void removePermission(final BPermission... p); void removeAllPermissions(); }
BRole extends GmsEntity { public void addPermission(final BPermission... p) { if (permissions == null) { permissions = new HashSet<>(); } permissions.addAll(Arrays.asList(p)); }  void addPermission(final BPermission... p); void removePermission(final BPermission... p); void removeAllPermissions();  }