diff --git a/src/test/java/fr/plil/sio/persistence/jdbc/RightServiceTest.java b/src/test/java/fr/plil/sio/persistence/jdbc/RightServiceTest.java index 2d5395d..78235d6 100644 --- a/src/test/java/fr/plil/sio/persistence/jdbc/RightServiceTest.java +++ b/src/test/java/fr/plil/sio/persistence/jdbc/RightServiceTest.java @@ -86,8 +86,8 @@ public class RightServiceTest extends AbstractServiceSupport { assertEquals(0, rightService.findByName("parent").size()); } - @Test - public void testDeleteRightIfNotFound() { + @Test(expected = IllegalArgumentException.class) + public void testDeleteRightIfNotInDatabase() { Right right = new Right(); right.setName("not-a-right"); assertFalse(rightService.delete(right)); -- libgit2 0.21.2