Skip to content

Commit

Permalink
Reorder profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Feb 23, 2024
1 parent 89da706 commit 54966a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}," +
Expand Down

0 comments on commit 54966a8

Please sign in to comment.