-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Formatage tp-1 et correction des diffs non significatifs entre énoncé
et solution
- Loading branch information
Pierre-Yves Fourmond
committed
Oct 26, 2023
1 parent
982f148
commit 910d083
Showing
6 changed files
with
44 additions
and
51 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
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
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
10 changes: 5 additions & 5 deletions
10
src/test/java/com/octo/ajava/domain/usecases/RecupererLesFilmsUseCaseUTest.java
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
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 |
---|---|---|
@@ -1,30 +1,26 @@ | ||
package com.octo.ajava.fixture; | ||
|
||
import com.octo.ajava.domain.Film; | ||
import static java.util.Collections.emptyList; | ||
|
||
import com.octo.ajava.domain.Film; | ||
import java.time.LocalDate; | ||
import java.util.List; | ||
|
||
public class FilmFixture { | ||
|
||
public static List<Film> deuxFilmsPopulaires() { | ||
return List.of( | ||
new Film( | ||
502356, | ||
"The Super Mario Bros. Movie", | ||
"While working underground to fix a water main, Brooklyn plumbers—and brothers—Mario and Luigi are transported down a mysterious pipe and wander into a magical new world. But when the brothers are separated, Mario embarks on an epic quest to find Luigi.", | ||
emptyList(), | ||
LocalDate.of(2023, 4, 5) | ||
), | ||
new Film( | ||
76600, | ||
"Avatar: The Way of Water", | ||
"Set more than a decade after the events of the first film, learn the story of the Sully family (Jake, Neytiri, and their kids), the trouble that follows them, the lengths they go to keep each other safe, the battles they fight to stay alive, and the tragedies they endure.", | ||
emptyList(), | ||
LocalDate.of(2022, 12, 14) | ||
) | ||
); | ||
new Film( | ||
502356, | ||
"The Super Mario Bros. Movie", | ||
"While working underground to fix a water main, Brooklyn plumbers—and brothers—Mario and Luigi are transported down a mysterious pipe and wander into a magical new world. But when the brothers are separated, Mario embarks on an epic quest to find Luigi.", | ||
emptyList(), | ||
LocalDate.of(2023, 4, 5)), | ||
new Film( | ||
76600, | ||
"Avatar: The Way of Water", | ||
"Set more than a decade after the events of the first film, learn the story of the Sully family (Jake, Neytiri, and their kids), the trouble that follows them, the lengths they go to keep each other safe, the battles they fight to stay alive, and the tragedies they endure.", | ||
emptyList(), | ||
LocalDate.of(2022, 12, 14))); | ||
} | ||
|
||
} |
17 changes: 10 additions & 7 deletions
17
src/test/java/com/octo/ajava/infra/controllers/FilmControllerFTest.java
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