mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-14 13:51:12 +00:00
Simplify build definition
This commit is contained in:
parent
d49cc42ae5
commit
895730caf9
2 changed files with 0 additions and 24 deletions
|
|
@ -1,6 +1,5 @@
|
|||
package org.springframework.samples.petclinic.vet;
|
||||
|
||||
import static org.hamcrest.xml.HasXPath.hasXPath;
|
||||
import static org.mockito.BDDMockito.given;
|
||||
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
|
||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
|
||||
|
|
@ -67,12 +66,4 @@ public class VetControllerTests {
|
|||
.andExpect(jsonPath("$.vetList[0].id").value(1));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testShowVetListXml() throws Exception {
|
||||
mockMvc.perform(get("/vets").accept(MediaType.APPLICATION_XML))
|
||||
.andExpect(status().isOk())
|
||||
.andExpect(content().contentType(MediaType.APPLICATION_XML_VALUE))
|
||||
.andExpect(content().node(hasXPath("/vets/vetList[id=1]/id")));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue