Commit 80e2164 Jens Vannerum
committed
1 parent f805c9e commit 80e2164 Copy full SHA for 80e2164
File tree 2 files changed +3
-3
lines changed
dspace-server-webapp/src/test/java/org/dspace/app/rest
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ public void createEmptyWorkspaceItemLoginOnBehalfOfCheckSubmitterTest() throws E
208
208
getClient (authToken ).perform (get ("/api/submission/workspaceitems/" + wsi .get ())
209
209
.param ("embed" , "submitter" ))
210
210
.andExpect (jsonPath ("$._embedded.submitter" ,
211
- EPersonMatcher .matchEPersonOnEmail (eperson . getEmail () )));
211
+ EPersonMatcher .matchProperties (eperson )));
212
212
213
213
} finally {
214
214
WorkspaceItemBuilder .deleteWorkspaceItem (wsi .get ());
Original file line number Diff line number Diff line change @@ -1078,7 +1078,7 @@ public void linkedEpersonOfSubscriptionAdminTest() throws Exception {
1078
1078
String tokenAdmin = getAuthToken (admin .getEmail (), password );
1079
1079
getClient (tokenAdmin ).perform (get ("/api/core/subscriptions/" + subscription .getID () + "/eperson" ))
1080
1080
.andExpect (status ().isOk ())
1081
- .andExpect (jsonPath ("$" , is (EPersonMatcher .matchEPersonOnEmail (eperson . getEmail () ))));
1081
+ .andExpect (jsonPath ("$" , is (EPersonMatcher .matchEPersonEntry (eperson ))));
1082
1082
}
1083
1083
1084
1084
@ Test
@@ -1096,7 +1096,7 @@ public void linkedEpersonOfSubscriptionTest() throws Exception {
1096
1096
String tokenEPerson = getAuthToken (eperson .getEmail (), password );
1097
1097
getClient (tokenEPerson ).perform (get ("/api/core/subscriptions/" + subscription .getID () + "/eperson" ))
1098
1098
.andExpect (status ().isOk ())
1099
- .andExpect (jsonPath ("$" , is (EPersonMatcher .matchEPersonOnEmail (eperson . getEmail () ))));
1099
+ .andExpect (jsonPath ("$" , is (EPersonMatcher .matchProperties (eperson ))));
1100
1100
}
1101
1101
1102
1102
@ Test
You can’t perform that action at this time.
0 commit comments