| | |
| | | } |
| | | |
| | | @Test |
| | | void test02_checkFindAll(Integer highwayId, Integer countJunctions) throws Exception { |
| | | mockMvc.perform(get("/mdeps",highwayId)) |
| | | .andExpect(jsonPath("$[?(@.name=='Kamen')].highways.size()",is(2))) |
| | | .andExpect(jsonPath("$[?(@.name=='Bielefeld')].highways.size()",is(2))); |
| | | void test02_checkFindAll() throws Exception { |
| | | mockMvc.perform(get("/mdeps")) |
| | | .andExpect(jsonPath("$[?(@.name=='Kamen')].highways.size()",is(List.of(2)))) |
| | | .andExpect(jsonPath("$[?(@.name=='Bielefeld')].highways.size()",is(List.of(2)))); |
| | | } |
| | | |
| | | private Highway loadHighway(Integer id) { |