Blame view

src/test/java/fr/plil/sio/persistence/jdbc/RightServiceTest.java 1.89 KB
a800fde0   jcartign   First version, in...
1
2
  package fr.plil.sio.persistence.jdbc;
  
bda41d02   jcartign   All tests method ...
3
  import org.junit.Test;
a800fde0   jcartign   First version, in...
4
5
6
7
8
9
10
  import org.junit.runner.RunWith;
  import org.springframework.boot.test.SpringApplicationConfiguration;
  import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
  
  @RunWith(SpringJUnit4ClassRunner.class)
  @SpringApplicationConfiguration(classes = JdbcApplication.class)
  public class RightServiceTest {
bda41d02   jcartign   All tests method ...
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
  
      @Test
      public void testCreateParentRightAndFindOne() {
  
      }
  
      @Test
      public void testCreateTwoParentRightsWithSameNameAndFindByName() {
  
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testCreateFailsIfNameNull() {
  
      }
  
      @Test
      public void testCreateSiblingRightAndFindOne() {
  
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testCreateSiblingFailsIfNameNull() {
  
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testCreateSiblingFailsIfParentNull() {
  
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testCreateSiblingFailsIfParentNotInDatabase() {
  
      }
  
      @Test
      public void testDeleteParentRight() {
      }
  
      @Test
      public void testDeleteSiblingRight() {
      }
  
  
      @Test
      public void testDeleteParentAndSiblingRights() {
      }
  
      @Test
      public void testDeleteRightIfNotFound() {
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testDeleteRightFailsIfRightNull() {
      }
  
      @Test
      public void testFindByName() {
      }
  
      @Test
      public void testFindSeveralByName() {
      }
  
      @Test
      public void testFindByNameIfNameNotFound() {
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testFindByNameFailsIfNameNull() {
      }
  
      @Test
      public void testFindOne() {
      }
  
      @Test
      public void testFindOneIfIdNotFound() {
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testFindOneFailsIfIdNull() {
      }
a800fde0   jcartign   First version, in...
95
  }