From c5a0ff9313a079e0649a2af228c269f69ef52766 Mon Sep 17 00:00:00 2001 From: Sushant Date: Thu, 14 Feb 2019 23:31:55 +0100 Subject: [PATCH] Fix method names --- .../test/kotlin/com/baeldung/datamapping/UserTest.kt | 2 +- .../baeldung/stringcomparison/StringComparisonTest.kt | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core-kotlin/src/test/kotlin/com/baeldung/datamapping/UserTest.kt b/core-kotlin/src/test/kotlin/com/baeldung/datamapping/UserTest.kt index 44d350ea38..c65b74ac2d 100644 --- a/core-kotlin/src/test/kotlin/com/baeldung/datamapping/UserTest.kt +++ b/core-kotlin/src/test/kotlin/com/baeldung/datamapping/UserTest.kt @@ -8,7 +8,7 @@ class UserTest { @Test fun `maps User to UserResponse using extension function`() { - val p = buildUser() + val p = buildUser() val view = p.toUserView() assertUserView(view) } diff --git a/core-kotlin/src/test/kotlin/com/baeldung/stringcomparison/StringComparisonTest.kt b/core-kotlin/src/test/kotlin/com/baeldung/stringcomparison/StringComparisonTest.kt index b8eefdb144..43caddfcf5 100644 --- a/core-kotlin/src/test/kotlin/com/baeldung/stringcomparison/StringComparisonTest.kt +++ b/core-kotlin/src/test/kotlin/com/baeldung/stringcomparison/StringComparisonTest.kt @@ -7,8 +7,8 @@ import kotlin.test.assertTrue class StringComparisonUnitTest { @Test - fun compareUsingEqualsOperator() { - val first = "kotlin" + fun `compare using equals operator`() { + val first = "kotlin" val second = "kotlin" val firstCapitalized = "KOTLIN" assertTrue { first == second } @@ -16,7 +16,7 @@ class StringComparisonUnitTest { } @Test - fun compareUsingReferencialEqualsOperator() { + fun `compare using referential equals operator`() { val first = "kotlin" val second = "kotlin" val firstBuildAgain = buildString { "kotlin" } @@ -25,7 +25,7 @@ class StringComparisonUnitTest { } @Test - fun compareUsingEqualsMethod() { + fun `compare using equals method`() { val first = "kotlin" val second = "kotlin" val firstCapitalized = "KOTLIN" @@ -35,7 +35,7 @@ class StringComparisonUnitTest { } @Test - fun compareUsingCompareToMethod() { + fun `compare using compare method`() { val first = "kotlin" val second = "kotlin" val firstCapitalized = "KOTLIN"