@@ -37,9 +37,9 @@ private List<Person> getPeopleMatching(List<Person> people, Predicate<Person> pr
37
37
@ Test
38
38
void givenPeople_whenGetPeopleMatching_AgeAboveForty_thenResult () {
39
39
40
- List <Person > peopleAges = getPeopleMatching (people , null );
40
+ List <Person > peopleOlderThanForty = getPeopleMatching (people , null );
41
41
42
- assertThat (peopleAges ).containsExactly (
42
+ assertThat (peopleOlderThanForty ).containsExactly (
43
43
new Person ("Robert" , 50 ),
44
44
new Person ("Anna" , 43 )
45
45
);
@@ -48,18 +48,18 @@ void givenPeople_whenGetPeopleMatching_AgeAboveForty_thenResult() {
48
48
@ Test
49
49
void givenPeople_whenGetPeopleMatching_AgeAboveFortyAndShortName_thenResult () {
50
50
51
- List <Person > peopleAges = getPeopleMatching (people , null );
51
+ List <Person > peopleOlderThanFortyAndHavingShortNames = getPeopleMatching (people , null );
52
52
53
- assertThat (peopleAges ).containsExactly (
53
+ assertThat (peopleOlderThanFortyAndHavingShortNames ).containsExactly (
54
54
new Person ("Anna" , 43 )
55
55
);
56
56
}
57
57
58
58
@ Test
59
59
void givenPeople_whenGetPeopleMatching_AgeAboveFortyOrShortName_thenResult () {
60
- List <Person > peopleAges = getPeopleMatching (people , null );
60
+ List <Person > peopleOlderThanFortyOrHavingShortNames = getPeopleMatching (people , null );
61
61
62
- assertThat (peopleAges ).containsExactly (
62
+ assertThat (peopleOlderThanFortyOrHavingShortNames ).containsExactly (
63
63
new Person ("Robert" , 50 ),
64
64
new Person ("Anna" , 43 ),
65
65
new Person ("Kevin" , 16 )
@@ -68,9 +68,10 @@ void givenPeople_whenGetPeopleMatching_AgeAboveFortyOrShortName_thenResult() {
68
68
69
69
@ Test
70
70
void givenPeople_whenGetPeopleMatching_AgeBesideForty_thenResult () {
71
- List <Person > peopleAges = getPeopleMatching (people , null );
72
71
73
- assertThat (peopleAges ).containsExactly (
72
+ List <Person > peopleYoungerThanForty = getPeopleMatching (people , null );
73
+
74
+ assertThat (peopleYoungerThanForty ).containsExactly (
74
75
new Person ("Kevin" , 16 ),
75
76
new Person ("Amelia" , 30 )
76
77
);
0 commit comments