From 476ed301f638b1b6f65e827934c384db17044a91 Mon Sep 17 00:00:00 2001 From: Loredana Crusoveanu Date: Sun, 18 Feb 2018 13:59:42 +0200 Subject: [PATCH] rename vars --- .../baeldung/string/StringComparisonTest.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/core-java/src/test/java/com/baeldung/string/StringComparisonTest.java b/core-java/src/test/java/com/baeldung/string/StringComparisonTest.java index 17b7f1f981..5869676004 100644 --- a/core-java/src/test/java/com/baeldung/string/StringComparisonTest.java +++ b/core-java/src/test/java/com/baeldung/string/StringComparisonTest.java @@ -48,25 +48,25 @@ public class StringComparisonTest { @Test public void whenUsingCompareTo_ThenComparingStrings(){ - String Author = "author"; - String Book = "book"; + String author = "author"; + String book = "book"; String duplicateBook = "book"; - assertThat(Author.compareTo(Book)).isEqualTo(-1); - assertThat(Book.compareTo(Author)).isEqualTo(1); - assertThat(duplicateBook.compareTo(Book)).isEqualTo(0); + assertThat(author.compareTo(book)).isEqualTo(-1); + assertThat(book.compareTo(author)).isEqualTo(1); + assertThat(duplicateBook.compareTo(book)).isEqualTo(0); } @Test public void whenUsingCompareToIgnoreCase_ThenComparingStrings(){ - String Author = "Author"; - String Book = "book"; + String author = "Author"; + String book = "book"; String duplicateBook = "BOOK"; - assertThat(Author.compareToIgnoreCase(Book)).isEqualTo(-1); - assertThat(Book.compareToIgnoreCase(Author)).isEqualTo(1); - assertThat(duplicateBook.compareToIgnoreCase(Book)).isEqualTo(0); + assertThat(author.compareToIgnoreCase(book)).isEqualTo(-1); + assertThat(book.compareToIgnoreCase(author)).isEqualTo(1); + assertThat(duplicateBook.compareToIgnoreCase(book)).isEqualTo(0); } @Test