public static PermissionTemplateGroupDto newPermissionTemplateGroupDto() { return new PermissionTemplateGroupDto() .setPermission( ProjectPermissions.ALL.get(RandomUtils.nextInt(ProjectPermissions.ALL.size()))) .setCreatedAt(new Date()) .setUpdatedAt(new Date()); }
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()); }