Blame view

src/test/java/fr/plil/sio/persistence/jdbc/UserServiceTest.java 1.76 KB
a800fde0   jcartign   First version, in...
1
2
  package fr.plil.sio.persistence.jdbc;
  
a800fde0   jcartign   First version, in...
3
4
  import org.junit.Test;
  import org.junit.runner.RunWith;
a800fde0   jcartign   First version, in...
5
6
7
  import org.springframework.boot.test.SpringApplicationConfiguration;
  import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
  
a800fde0   jcartign   First version, in...
8
9
10
11
  @RunWith(SpringJUnit4ClassRunner.class)
  @SpringApplicationConfiguration(classes = JdbcApplication.class)
  public class UserServiceTest {
  
a800fde0   jcartign   First version, in...
12
13
      @Test
      public void testCreateAndFindByName() {
bda41d02   jcartign   All tests method ...
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
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testCreateFailsWhenNameNull() {
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testCreateFailsWhenGroupNameNull() {
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testCreateFailsWhenGroupDoesNotExist() {
      }
  
      @Test(expected = IllegalStateException.class)
      public void testCreateFailsWhenSameNameUserAlreadyPresent() {
      }
  
      public void testDeleteUser() {
      }
  
      public void testDeleteUserIfNotFound() {
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testDeleteUserFailsIfNameNull() {
      }
  
      public void testFindUserByNameIfUserNotFound() {
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testFindUserByNameFailsIfNameNull() {
      }
  
      public void testIsUserHasExactRight() {
      }
  
      public void testIsUserHasRightByParents() {
      }
  
      public void testIsUserHasNotTheExactRight() {
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testIsUserHasRightFailsWhenUsernameNull() {
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testIsUserHasRightFailsWhenRightNull() {
      }
  
      @Test(expected = IllegalArgumentException.class)
      public void testIsUserHasRightFailsWhenRightNotInDatabase() {
a800fde0   jcartign   First version, in...
68
69
      }
  }