Commit 3de62e47fcb352e3b5a2f457e54297e297590c0d

Authored by msahmane
1 parent 7a831760

Amélioration des tests et résolution du blocage de tests à 50%

.gitignore
... ... @@ -2,3 +2,4 @@
2 2 */target/
3 3 .idea/
4 4 */.idea/
  5 +/target/
5 6 \ No newline at end of file
... ...
src/main/java/fr/plil/sio/persistence/jdbc/UserRepositoryJdbc.java
... ... @@ -36,7 +36,7 @@ public class UserRepositoryJdbc implements UserRepository {
36 36 stmt = dataSource.getConnection().createStatement();
37 37 rs = stmt.executeQuery("SELECT * FROM USER_T WHERE NAME_U = \'" + name + "\'");
38 38 if (rs.next()) {
39   - logger.debug("found group " + name);
  39 + logger.debug("found user " + name);
40 40 User user= new User();
41 41 user.setId(rs.getLong("USER_ID"));
42 42 user.setName(rs.getString("NAME_U"));
... ...
src/main/java/fr/plil/sio/persistence/jdbc/UserServiceJdbc.java
... ... @@ -22,7 +22,7 @@ public class UserServiceJdbc implements UserService {
22 22 throw new IllegalStateException("a group with the same name already exists");
23 23 }
24 24 user = new User();
25   - user.setName(name);
  25 + user.setName(name);
26 26 userRepository.save(user);
27 27 return user;
28 28 }
... ...
src/test/resources/application.properties
1 1 logging.level.org.springframework=INFO
2 2 logging.level.org.hibernate.SQL=DEBUG
3 3 logging.level.org.hibernate=INFO
4   -spring.datasource.url=jdbc:h2:mem:persistence;TRACE_LEVEL_FILE=4
5 4 \ No newline at end of file
  5 +spring.datasource.url=jdbc:h2:mem:persistence;TRACE_LEVEL_FILE=4
  6 +spring.datasource.maxActive=300
6 7 \ No newline at end of file
... ...