Commit 7781d0590a479ed02acb49dc3b417031d23fb5da

Authored by jcartign
1 parent e8b27d59

Fix testDeleteRightIfFound -> testDeleteRightIfNotInDatabase

- excepting IllegalArgumentException instead of false return value
src/test/java/fr/plil/sio/persistence/jdbc/RightServiceTest.java
... ... @@ -86,8 +86,8 @@ public class RightServiceTest extends AbstractServiceSupport {
86 86 assertEquals(0, rightService.findByName("parent").size());
87 87 }
88 88  
89   - @Test
90   - public void testDeleteRightIfNotFound() {
  89 + @Test(expected = IllegalArgumentException.class)
  90 + public void testDeleteRightIfNotInDatabase() {
91 91 Right right = new Right();
92 92 right.setName("not-a-right");
93 93 assertFalse(rightService.delete(right));
... ...