Skip to content

Commit 80e2164

Browse files
author
Jens Vannerum
committed
[TEMP] use services in matchers as they seem to work locally
1 parent f805c9e commit 80e2164

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dspace-server-webapp/src/test/java/org/dspace/app/rest/LoginAsEPersonIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public void createEmptyWorkspaceItemLoginOnBehalfOfCheckSubmitterTest() throws E
208208
getClient(authToken).perform(get("/api/submission/workspaceitems/" + wsi.get())
209209
.param("embed", "submitter"))
210210
.andExpect(jsonPath("$._embedded.submitter",
211-
EPersonMatcher.matchEPersonOnEmail(eperson.getEmail())));
211+
EPersonMatcher.matchProperties(eperson)));
212212

213213
} finally {
214214
WorkspaceItemBuilder.deleteWorkspaceItem(wsi.get());

dspace-server-webapp/src/test/java/org/dspace/app/rest/SubscriptionRestRepositoryIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ public void linkedEpersonOfSubscriptionAdminTest() throws Exception {
10781078
String tokenAdmin = getAuthToken(admin.getEmail(), password);
10791079
getClient(tokenAdmin).perform(get("/api/core/subscriptions/" + subscription.getID() + "/eperson"))
10801080
.andExpect(status().isOk())
1081-
.andExpect(jsonPath("$", is(EPersonMatcher.matchEPersonOnEmail(eperson.getEmail()))));
1081+
.andExpect(jsonPath("$", is(EPersonMatcher.matchEPersonEntry(eperson))));
10821082
}
10831083

10841084
@Test
@@ -1096,7 +1096,7 @@ public void linkedEpersonOfSubscriptionTest() throws Exception {
10961096
String tokenEPerson = getAuthToken(eperson.getEmail(), password);
10971097
getClient(tokenEPerson).perform(get("/api/core/subscriptions/" + subscription.getID() + "/eperson"))
10981098
.andExpect(status().isOk())
1099-
.andExpect(jsonPath("$", is(EPersonMatcher.matchEPersonOnEmail(eperson.getEmail()))));
1099+
.andExpect(jsonPath("$", is(EPersonMatcher.matchProperties(eperson))));
11001100
}
11011101

11021102
@Test

0 commit comments

Comments
 (0)