From 7781d0590a479ed02acb49dc3b417031d23fb5da Mon Sep 17 00:00:00 2001 From: jcartign Date: Mon, 26 Sep 2016 09:59:16 +0200 Subject: [PATCH] Fix testDeleteRightIfFound -> testDeleteRightIfNotInDatabase --- src/test/java/fr/plil/sio/persistence/jdbc/RightServiceTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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