Browse Source

PersonController - Complete

Nick Satinover 6 years ago
parent
commit
b9b6b07624

+ 1
- 1
src/main/java/io/zipcoder/crudapp/PersonController.java View File

@@ -45,7 +45,7 @@ public class PersonController{
45 45
         );
46 46
     }
47 47
 
48
-    @DeleteMapping("/people{id}")
48
+    @DeleteMapping("/people/{id}")
49 49
     void deletePerson(@PathVariable int id){
50 50
                 personRepository.delete(id);
51 51
     }

+ 10
- 10
src/test/java/io/zipcoder/crudapp/CRUDApplicationTests.java View File

@@ -39,16 +39,16 @@ public class CRUDApplicationTests {
39 39
 		Assert.assertEquals(expected, actual);
40 40
 	}
41 41
 
42
-    @Test
43
-    public void PersonControllerGetTest(){
44
-        // given
45
-        //SetUp
46
-        // when
47
-        //String expected = "Satinover";
42
+//    @Test
43
+//    public void PersonControllerGetTest(){
44
+//         given
45
+//
46
+//         when
47
+//        String expected = "Satinover";
48 48
 //        Person actual = personController.getPerson(1);
49
-
50
-        // then
51
-        //Assert.assertEquals(expected, actual);
52
-    }
49
+//
50
+//         then
51
+//        Assert.assertEquals(expected, actual);
52
+//    }
53 53
 
54 54
 }