8000 Fixed list names in functions examples · dupirefr/course-functional-java@7465b2e · GitHub
[go: up one dir, main page]

Skip to content

Commit 7465b2e

Browse files
author
fdpro
committed
Fixed list names in functions examples
1 parent 5030422 commit 7465b2e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test/java/com/fdpro/trainings/functionaljava/FunctionalInterfaces_Functions.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ void givenPeople_whenGetPeopleInfo_Ages_thenResult() {
4141
}
4242

4343
@Test
44-
void givenPeople_whenGetPeopleInfo_YearBorn_AndThen_thenResult() {
44+
void givenPeople_whenGetPeopleInfo_YearOfBirth_AndThen_thenResult() {
4545

46-
List<Year> peopleAges = getPeopleInfo(people, null);
46+
List<Year> peopleYearOfBirth = getPeopleInfo(people, null);
4747

48-
assertThat(peopleAges).containsExactly(Year.of(1969), Year.of(1976), Year.of(2003));
48+
assertThat(peopleYearOfBirth).containsExactly(Year.of(1969), Year.of(1976), Year.of(2003));
4949
}
5050

5151
@Test
52-
void givenPeople_whenGetPeopleInfo_YearBorn_Compose_thenResult() {
52+
void givenPeople_whenGetPeopleInfo_YearOfBirth_Compose_thenResult() {
5353

54-
List<Year> peopleAges = getPeopleInfo(people, null);
54+
List<Year> peopleYearOrfBirth = getPeopleInfo(people, null);
5555

56-
assertThat(peopleAges).containsExactly(Year.of(1969), Year.of(1976), Year.of(2003));
56+
assertThat(peopleYearOrfBirth).containsExactly(Year.of(1969), Year.of(1976), Year.of(2003));
5757
}
5858
}

0 commit comments

Comments
 (0)
0