Skip to content

Commit

Permalink
Test updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jesussmariscal committed Dec 28, 2024
1 parent a0ea15c commit e831249
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ void testNewAttendance_whenUserIsAuthenticatedAndAttendanceIsValid() throws Exce
"123");
User creator = new User(1L, "John", "Doe", "Smith", "12345678A", "[email protected]",
"123");
Attendance attendance = new Attendance(creator, new Subject());
Attendance attendance = new Attendance(creator, new Subject(),"123");

when(request.getUserPrincipal()).thenReturn(principal);
when(principal.getName()).thenReturn("[email protected]");
Expand Down Expand Up @@ -460,7 +460,7 @@ void testNewAttendance_whenUserIsAuthenticatedAndAttendanceIsExpired() throws Ex
"123");
User creator = new User(1L, "John", "Doe", "Smith", "12345678A", "[email protected]",
"123");
Attendance attendance = new Attendance(creator, new Subject());
Attendance attendance = new Attendance(creator, new Subject(),"123");
// Simula una fecha de asistencia que ya ha expirado (más de 5 minutos en el
// pasado)
LocalDateTime expiredDateTime = LocalDateTime.now().minusMinutes(6);
Expand Down
Binary file not shown.

0 comments on commit e831249

Please sign in to comment.