コード例 #1
0
 public static PermissionTemplateGroupDto newPermissionTemplateGroupDto() {
   return new PermissionTemplateGroupDto()
       .setPermission(
           ProjectPermissions.ALL.get(RandomUtils.nextInt(ProjectPermissions.ALL.size())))
       .setCreatedAt(new Date())
       .setUpdatedAt(new Date());
 }
コード例 #2
0
 public static PermissionTemplateCharacteristicDto newPermissionTemplateCharacteristicDto() {
   return new PermissionTemplateCharacteristicDto()
       .setPermission(
           ProjectPermissions.ALL.get(RandomUtils.nextInt(ProjectPermissions.ALL.size())))
       .setWithProjectCreator(RandomUtils.nextBoolean())
       .setCreatedAt(System.currentTimeMillis())
       .setUpdatedAt(System.currentTimeMillis());
 }