We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf7bf29 commit 6f7a09dCopy full SHA for 6f7a09d
src/test/java/com/gourav/restapi/controllers/PetsControllerTest.java
@@ -53,17 +53,4 @@ public void getPetById() throws Exception {
53
.andExpect(jsonPath("$.name").value("Liam")).andExpect(jsonPath("$.breed").value("tabby"))
54
.andExpect(jsonPath("$.species").value("cat")).andReturn();
55
}
56
-
57
- @Test
58
- public void createPet() throws Exception {
59
- Pets pets = new Pets();
60
61
- pets.setName("Liam");
62
- pets.setBreed("tabby");
63
- pets.setSpecies("cat");
64
65
- given(petsController.createPet(pets)).willReturn(pets);
66
67
- mvc.perform(post("/pets/").contentType("application/json;charset=UTF-8")).andExpect(status().isOk());
68
- }
69
0 commit comments