Skip to content

Commit bb1ccff

Browse files
author
dupirefr
committed
[BAEL-3981] Fixes from Josh's review
* Upgraded Apache Commons to 3.10 * Replaced Nathalie by Natalie
1 parent 0ce80e4 commit bb1ccff

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

core-java-modules/core-java-lang-2/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<jmh-generator.version>1.19</jmh-generator.version>
7171
<assertj.version>3.12.2</assertj.version>
7272
<commons.beanutils.version>1.9.4</commons.beanutils.version>
73-
<commons-lang3.version>3.9</commons-lang3.version>
73+
<commons-lang3.version>3.10</commons-lang3.version>
7474
<guava.version>29.0-jre</guava.version>
7575
</properties>
7676

core-java-modules/core-java-lang-2/src/test/java/com/baeldung/comparing/EqualsMethodUnitTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ void givenTwoPersonWithEqualsWithSameNames_whenEquals_thenTrue() {
6666
@Test
6767
void givenTwoPersonWittEqualsWithDifferentNames_whenEquals_thenFalse() {
6868
PersonWithEquals joe = new PersonWithEquals("Joe", "Portman");
69-
PersonWithEquals nathalie = new PersonWithEquals("Nathalie", "Portman");
69+
PersonWithEquals natalie = new PersonWithEquals("Natalie", "Portman");
7070

71-
assertThat(joe.equals(nathalie)).isFalse();
71+
assertThat(joe.equals(natalie)).isFalse();
7272
}
7373
}

core-java-modules/core-java-lang-2/src/test/java/com/baeldung/comparing/GuavaUnitTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ void givenTwoIntsWithConsecutiveValues_whenIntsCompareMethodsReversed_thenNegati
5858
@Nested
5959
class ComparisonChainClass {
6060
@Test
61-
void givenTwoPersonWithEquals_whenComparisonChainByLastNameThenFirstName_thenSortedJoeFirstAndNathalieSecond() {
62-
PersonWithEquals nathalie = new PersonWithEquals("Nathalie", "Portman");
61+
void givenTwoPersonWithEquals_whenComparisonChainByLastNameThenFirstName_thenSortedJoeFirstAndNatalieSecond() {
62+
PersonWithEquals natalie = new PersonWithEquals("Natalie", "Portman");
6363
PersonWithEquals joe = new PersonWithEquals("Joe", "Portman");
6464

6565
int comparisonResult = ComparisonChain.start()
66-
.compare(nathalie.lastName(), joe.lastName())
67-
.compare(nathalie.firstName(), joe.firstName())
66+
.compare(natalie.lastName(), joe.lastName())
67+
.compare(natalie.firstName(), joe.firstName())
6868
.result();
6969

7070
assertThat(comparisonResult).isPositive();

core-java-modules/core-java-lang-2/src/test/java/com/baeldung/comparing/ObjectsEqualsStaticMethodUnitTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ void givenTwoPersonWithEqualsWithSameNames_whenObjectsEquals_thenTrue() {
1919
@Test
2020
void givenTwoPersonWithEqualsWithDifferentNames_whenObjectsEquals_thenFalse() {
2121
PersonWithEquals joe = new PersonWithEquals("Joe", "Portman");
22-
PersonWithEquals nathalie = new PersonWithEquals("Nathalie", "Portman");
22+
PersonWithEquals natalie = new PersonWithEquals("Natalie", "Portman");
2323

24-
assertThat(Objects.equals(joe, nathalie)).isFalse();
24+
assertThat(Objects.equals(joe, natalie)).isFalse();
2525
}
2626

2727
@Test

0 commit comments

Comments
 (0)