diff options
| -rw-r--r-- | ufund-api/src/test/java/com/ufund/api/ufundapi/controller/CupboardControllerTest.java | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ufund-api/src/test/java/com/ufund/api/ufundapi/controller/CupboardControllerTest.java b/ufund-api/src/test/java/com/ufund/api/ufundapi/controller/CupboardControllerTest.java index c9b0c5e..3702581 100644 --- a/ufund-api/src/test/java/com/ufund/api/ufundapi/controller/CupboardControllerTest.java +++ b/ufund-api/src/test/java/com/ufund/api/ufundapi/controller/CupboardControllerTest.java @@ -129,9 +129,9 @@ public class CupboardControllerTest {      }      @Test -    public void getNeed() { +    public void getNeedIOException() {          var need = new Need("Name", 1, 100, Need.GoalType.MONETARY); -        when(mockCupboardDAO.getNeed(need.getId())).thenThrow(new IOException()) +        when(mockCupboardDAO.getNeed(need.getId())).thenThrow(new IOException());          var res = cupboardController.getNeed(need.getId());  | 
