[DS-3762] added a page check to the metadataschemas endpoint and finalized the tests

This commit is contained in:
Raf Ponsaerts
2017-12-04 11:46:35 +01:00
committed by Tom Desair
parent 907501c280
commit 078b71010a

View File

@@ -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.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.hamcrest.Matchers.is;
public class MetadataschemaRestRepositoryIT extends AbstractControllerIntegrationTest {
@@ -29,7 +30,8 @@ public class MetadataschemaRestRepositoryIT extends AbstractControllerIntegratio
.andExpect(jsonPath("$._embedded.metadataschemas", Matchers.hasItem(
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)));
}