mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
Change FindByEmail no parameter test to BadRequest
This commit is contained in:
@@ -348,10 +348,10 @@ public class EPersonRestRepositoryIT extends AbstractControllerIntegrationTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void findByEmailUnprocessable() throws Exception {
|
public void findByEmailMissingParameter() throws Exception {
|
||||||
String authToken = getAuthToken(admin.getEmail(), password);
|
String authToken = getAuthToken(admin.getEmail(), password);
|
||||||
getClient(authToken).perform(get("/api/eperson/epersons/search/byEmail"))
|
getClient(authToken).perform(get("/api/eperson/epersons/search/byEmail"))
|
||||||
.andExpect(status().isUnprocessableEntity());
|
.andExpect(status().isBadRequest());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Reference in New Issue
Block a user