mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
[DS-3762] added a page check to the metadataschemas endpoint and finalized the tests
This commit is contained in:

committed by
Tom Desair

parent
907501c280
commit
078b71010a
@@ -17,6 +17,7 @@ import static org.springframework.test.web.servlet.request.MockMvcRequestBuilder
|
|||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
|
||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
|
||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
||||||
|
import static org.hamcrest.Matchers.is;
|
||||||
|
|
||||||
public class MetadataschemaRestRepositoryIT extends AbstractControllerIntegrationTest {
|
public class MetadataschemaRestRepositoryIT extends AbstractControllerIntegrationTest {
|
||||||
|
|
||||||
@@ -29,7 +30,8 @@ public class MetadataschemaRestRepositoryIT extends AbstractControllerIntegratio
|
|||||||
.andExpect(jsonPath("$._embedded.metadataschemas", Matchers.hasItem(
|
.andExpect(jsonPath("$._embedded.metadataschemas", Matchers.hasItem(
|
||||||
MetadataschemaMatcher.matchEntry()
|
MetadataschemaMatcher.matchEntry()
|
||||||
)))
|
)))
|
||||||
.andExpect(jsonPath("$._links.self.href", Matchers.containsString("/api/core/metadataschemas")));
|
.andExpect(jsonPath("$._links.self.href", Matchers.containsString("/api/core/metadataschemas")))
|
||||||
|
.andExpect(jsonPath("$.page.size", is(20)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user