Skip to content

Commit 6f7a09d

Browse files
revert junit faulty one
1 parent bf7bf29 commit 6f7a09d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/test/java/com/gourav/restapi/controllers/PetsControllerTest.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,4 @@ public void getPetById() throws Exception {
5353
.andExpect(jsonPath("$.name").value("Liam")).andExpect(jsonPath("$.breed").value("tabby"))
5454
.andExpect(jsonPath("$.species").value("cat")).andReturn();
5555
}
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-
}
6956
}

0 commit comments

Comments
 (0)