From 54966a8c5a03f510350d4c294bc40f924f4c4f64 Mon Sep 17 00:00:00 2001 From: Maxim Date: Fri, 23 Feb 2024 11:05:11 +0300 Subject: [PATCH] Reorder profiles --- .../jobservice/server/controller/ProfileController.java | 4 ++-- .../server/controller/ProfileControllerTests.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/job-service/server/src/main/java/org/verapdf/webapp/jobservice/server/controller/ProfileController.java b/job-service/server/src/main/java/org/verapdf/webapp/jobservice/server/controller/ProfileController.java index 537c309c..eff05ca4 100644 --- a/job-service/server/src/main/java/org/verapdf/webapp/jobservice/server/controller/ProfileController.java +++ b/job-service/server/src/main/java/org/verapdf/webapp/jobservice/server/controller/ProfileController.java @@ -17,9 +17,9 @@ public class ProfileController { public ProfileController() { this.profiles = new ArrayList<>(); - this.profiles.add(new ProfileDTO(Profile.WCAG_2_2_COMPLETE, true)); this.profiles.add(new ProfileDTO(Profile.WCAG_2_2_MACHINE, true)); - this.profiles.add(new ProfileDTO(Profile.WCAG_2_2_HUMAN, true)); + this.profiles.add(new ProfileDTO(Profile.WCAG_2_2_COMPLETE, true)); + this.profiles.add(new ProfileDTO(Profile.WCAG_2_2_HUMAN, false)); this.profiles.add(new ProfileDTO(Profile.WCAG_2_2_DEV, false)); this.profiles.add(new ProfileDTO(Profile.PDFUA_1, true)); this.profiles.add(new ProfileDTO(Profile.PDFUA_2, true)); diff --git a/job-service/server/src/test/java/org/verapdf/webapp/jobservice/server/controller/ProfileControllerTests.java b/job-service/server/src/test/java/org/verapdf/webapp/jobservice/server/controller/ProfileControllerTests.java index da260809..d93ce5b9 100644 --- a/job-service/server/src/test/java/org/verapdf/webapp/jobservice/server/controller/ProfileControllerTests.java +++ b/job-service/server/src/test/java/org/verapdf/webapp/jobservice/server/controller/ProfileControllerTests.java @@ -35,15 +35,15 @@ void getProfilesTest() throws Exception { .andExpect(status().isOk()) .andExpect(MockMvcResultMatchers.content().contentType(MediaType.APPLICATION_JSON)) .andExpect(content().json("[" + - "{\"profileName\":\"WCAG_2_2_COMPLETE\"," + - "\"humanReadableName\":\"WCAG 2.2 Machine & Human (experimental)\"," + - "\"enabled\":true}," + "{\"profileName\":\"WCAG_2_2_MACHINE\"," + "\"humanReadableName\":\"WCAG 2.2 (Machine)\"," + "\"enabled\":true}," + + "{\"profileName\":\"WCAG_2_2_COMPLETE\"," + + "\"humanReadableName\":\"WCAG 2.2 Machine & Human (experimental)\"," + + "\"enabled\":true}," + "{\"profileName\":\"WCAG_2_2_HUMAN\"," + "\"humanReadableName\":\"WCAG 2.2 (Human)\"," + - "\"enabled\":true}," + + "\"enabled\":false}," + "{\"profileName\":\"WCAG_2_2_DEV\"," + "\"humanReadableName\":\"WCAG 2.2 (DEV)\"," + "\"enabled\":false}," +