Change FindByEmail no parameter test to BadRequest

This commit is contained in:
Yana De Pauw
2020-03-05 18:32:27 +01:00
parent 73798fe0b6
commit 5c6be96c9b

View File

@@ -348,10 +348,10 @@ public class EPersonRestRepositoryIT extends AbstractControllerIntegrationTest {
}
@Test
public void findByEmailUnprocessable() throws Exception {
public void findByEmailMissingParameter() throws Exception {
String authToken = getAuthToken(admin.getEmail(), password);
getClient(authToken).perform(get("/api/eperson/epersons/search/byEmail"))
.andExpect(status().isUnprocessableEntity());
.andExpect(status().isBadRequest());
}
@Test