Skip to content

Commit 99fb2d7

Browse files
committed
enrich tests
Signed-off-by: Etienne Homer <[email protected]>
1 parent d9bcfc2 commit 99fb2d7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/java/org/gridsuite/useradmin/server/UserAdminTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,8 @@ public void testUserAdmin() throws Exception {
108108
assertEquals(2, connectionRepository.findAll().size());
109109
assertTrue(connectionRepository.findBySub(USER_SUB).getConnectionAccepted());
110110
assertFalse(connectionRepository.findBySub("UNKNOWN").getConnectionAccepted());
111-
LocalDateTime firstConnectionDate = connectionRepository.findBySub(USER_SUB).getFirstConnexionDate();
112-
//firstConnectionDate and lastConnectionDate are equals cause this is the first connection for this user
113-
assertEquals(firstConnectionDate, connectionRepository.findBySub(USER_SUB).getLastConnexionDate());
114111

112+
LocalDateTime firstConnectionDate = connectionRepository.findBySub(USER_SUB).getFirstConnexionDate();
115113
mockMvc.perform(head("/" + UserAdminApi.API_VERSION + "/users/{sub}", USER_SUB))
116114
.andExpect(status().isOk())
117115
.andReturn();

0 commit comments

Comments
 (0)