Commit 8882a9c3ffb8251517226750d2e65f5adb690e01
1 parent
292aec6f
Premières modifications.
Passage de quelques tests sur les groupes afin de prendre en main le logiciel.
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/test/java/fr/plil/sio/persistence/jdbc/GroupServiceTest.java
... | ... | @@ -48,12 +48,14 @@ public class GroupServiceTest extends AbstractServiceSupport { |
48 | 48 | groupService.create("group"); |
49 | 49 | } |
50 | 50 | |
51 | + @Test | |
51 | 52 | public void testDeleteGroup() { |
52 | 53 | assertTrue(groupService.delete("group")); |
53 | 54 | assertNull(groupService.findByName("group")); |
54 | 55 | assertFalse(groupService.delete("group")); |
55 | 56 | } |
56 | 57 | |
58 | + @Test | |
57 | 59 | public void testDeleteNotExistingGroup() { |
58 | 60 | assertFalse(groupService.delete("not-a-group")); |
59 | 61 | } |
... | ... | @@ -75,6 +77,7 @@ public class GroupServiceTest extends AbstractServiceSupport { |
75 | 77 | assertNull(userService.findByName("user2")); |
76 | 78 | } |
77 | 79 | |
80 | + @Test | |
78 | 81 | public void testFindByNameIfGroupNotFound() { |
79 | 82 | assertNull(groupService.findByName("unknown")); |
80 | 83 | } | ... | ... |