From fea0a3a89694cf045be71ba995e1241497d1330d Mon Sep 17 00:00:00 2001 From: Yura Bondarenko Date: Fri, 5 Mar 2021 10:19:38 +0100 Subject: [PATCH] 77228: Fix line length --- .../app/rest/BrowsesResourceControllerIT.java | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/dspace-server-webapp/src/test/java/org/dspace/app/rest/BrowsesResourceControllerIT.java b/dspace-server-webapp/src/test/java/org/dspace/app/rest/BrowsesResourceControllerIT.java index 0defa71513..688a55aedd 100644 --- a/dspace-server-webapp/src/test/java/org/dspace/app/rest/BrowsesResourceControllerIT.java +++ b/dspace-server-webapp/src/test/java/org/dspace/app/rest/BrowsesResourceControllerIT.java @@ -289,11 +289,15 @@ public class BrowsesResourceControllerIT extends AbstractControllerIntegrationTe //Check the embedded resources and that they're sorted alphabetically //Check that the subject matches as expected //Verify that they're sorted alphabetically - .andExpect(jsonPath("$._embedded.entries", - containsInAnyOrder(BrowseEntryResourceMatcher.matchBrowseEntry("Missionary studies", "VR110104", 1), - BrowseEntryResourceMatcher.matchBrowseEntry("History of religion", "VR110102", 3), - BrowseEntryResourceMatcher.matchBrowseEntry("Church studies", "VR110103", 2) - ))); + .andExpect( + jsonPath("$._embedded.entries", + containsInAnyOrder( + BrowseEntryResourceMatcher.matchBrowseEntry("Missionary studies", "VR110104", 1), + BrowseEntryResourceMatcher.matchBrowseEntry("History of religion", "VR110102", 3), + BrowseEntryResourceMatcher.matchBrowseEntry("Church studies", "VR110103", 2) + ) + ) + ); getClient().perform(get("/api/discover/browses/subject/entries") .param("sort", "value,desc")) @@ -310,11 +314,15 @@ public class BrowsesResourceControllerIT extends AbstractControllerIntegrationTe //Check the embedded resources and that they're sorted alphabetically //Check that the subject matches as expected //Verify that they're sorted alphabetically - .andExpect(jsonPath("$._embedded.entries", - containsInAnyOrder(BrowseEntryResourceMatcher.matchBrowseEntry("Missionary studies", "VR110104", 1), - BrowseEntryResourceMatcher.matchBrowseEntry("History of religion", "VR110102", 3), - BrowseEntryResourceMatcher.matchBrowseEntry("Church studies", "VR110103", 2) - ))); + .andExpect( + jsonPath("$._embedded.entries", + containsInAnyOrder( + BrowseEntryResourceMatcher.matchBrowseEntry("Missionary studies", "VR110104", 1), + BrowseEntryResourceMatcher.matchBrowseEntry("History of religion", "VR110102", 3), + BrowseEntryResourceMatcher.matchBrowseEntry("Church studies", "VR110103", 2) + ) + ) + ); } @Test