File tree 3 files changed +93
-6
lines changed
java/net/datafaker/providers/entertainment
test/java/net/datafaker/providers/entertainment
3 files changed +93
-6
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ protected Movie(EntertainmentProviders faker) {
11
11
super (faker );
12
12
}
13
13
14
- /**
15
- * This method generates a random quote from a movie.
16
- *
17
- * @return a string of quote from a movie.
18
- */
19
14
public String quote () {
20
15
return resolve ("movie.quote" );
21
16
}
17
+
18
+ public String name () {
19
+ return resolve ("movie.name" );
20
+ }
21
+
22
22
}
Original file line number Diff line number Diff line change 13
13
- " You talking to me?"
14
14
- " What we've got here is failure to communicate."
15
15
- " I love the smell of napalm in the morning."
16
+ name :
17
+ - " Everything Everywhere All at Once"
18
+ - " Manchester by the Sea"
19
+ - " Marcel the Shell with Shoes On"
20
+ - " The Florida Project"
21
+ - " First Cow"
22
+ - " The Eternal Daughter"
23
+ - " Talk to Me"
24
+ - " Saint Maud"
25
+ - " Uncut Gems"
26
+ - " A Ghost Story"
27
+ - " The Lighthouse"
28
+ - " Hereditary"
29
+ - " Green Room"
30
+ - " The Iron Claw"
31
+ - " The Exorcist"
32
+ - " Reservoir Dogs"
33
+ - " Pulp Fiction"
34
+ - " Inglourious Basterds"
35
+ - " Django Unchained"
36
+ - " Insomnia"
37
+ - " Tenet"
38
+ - " Memento"
39
+ - " Inception"
40
+ - " Interstellar"
41
+ - " The Prestige"
42
+ - " Batman Begins"
43
+ - " The Dark Knight"
44
+ - " The Dark Knight Rises"
45
+ - " Dunkirk"
46
+ - " Oppenheimer"
47
+ - " L.A. Confidential"
48
+ - " The Godfather"
49
+ - " Parasite"
50
+ - " Schindler's List"
51
+ - " 12 Angry Men"
52
+ - " Goodfellas"
53
+ - " There Will Be Blood"
54
+ - " The Truman Show"
55
+ - " Forrest Gump"
56
+ - " The Dictator"
57
+ - " Fight Club"
58
+ - " The Matrix"
59
+ - " The Silence of the Lambs"
60
+ - " Saving Private Ryan"
61
+ - " Gladiator"
62
+ - " The Hangover"
63
+ - " The Departed"
64
+ - " The Usual Suspects"
65
+ - " The Shining"
66
+ - " Good Will Hunting"
67
+ - " Requiem for a Dream"
68
+ - " Eternal Sunshine of the Spotless Mind"
69
+ - " Scarface"
70
+ - " Taxi Driver"
71
+ - " Heat"
72
+ - " American Beauty"
73
+ - " To Kill a Mockingbird"
74
+ - " Die Hard"
75
+ - " The Wolf of Wall Street"
76
+ - " Shutter Island"
77
+ - " The Sixth Sense"
78
+ - " No Country for Old Men"
79
+ - " A Beautiful Mind"
80
+ - " Raging Bull"
81
+ - " Catch Me If You Can"
82
+ - " Million Dollar Baby"
83
+ - " Gone Girl"
84
+ - " Ratatouille"
85
+ - " Rocky"
86
+ - " Unbreakable"
87
+ - " Split"
88
+ - " Glass"
89
+ - " Knock at the Cabin"
90
+ - " Titanic"
91
+ - " The Notebook"
92
+ - " Jerry Maguire"
93
+ - " American Made"
94
+ - " Edge of Tomorrow"
95
+ - " Collateral"
96
+ - " Minority Report"
97
+ - " About Time"
98
+ - " Arrival"
99
+ - " 12 Monkeys"
100
+ - " Predestination"
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ class MovieTest extends EntertainmentFakerTest {
10
10
@ Override
11
11
protected Collection <TestSpec > providerListTest () {
12
12
return List .of (
13
- TestSpec .of (movie ::quote , "movie.quote" )
13
+ TestSpec .of (movie ::quote , "movie.quote" ),
14
+ TestSpec .of (movie ::name , "movie.name" )
14
15
);
15
16
}
17
+
16
18
}
You can’t perform that action at this time.
0 commit comments