mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Change FindByEmail no parameter test to BadRequest
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user