-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0ea15c
commit e831249
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]"); | ||
|
@@ -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); | ||
|
Binary file modified
BIN
+1.1 KB
(110%)
Backend/target/test-classes/com/example/demo/UserControllerTests.class
Binary file not shown.