Skip to content

Commit 0791787

Browse files
committed
[anonymous-obj-casting] renaming test methods
1 parent c568ce4 commit 0791787

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core-kotlin-modules/core-kotlin-lang-oop-2/src/test/kotlin/com/baeldung/kotlin/anonymousObjects/AnonymousObjectsUnitTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface Printable {
1717
* If we use an anonymous object as the return value of a private method,
1818
* its members can still be accessed
1919
*/
20-
class PlayerService() {
20+
class PlayerService {
2121
private fun giveMeAPlayer() = object {
2222
val name = "Kai"
2323
val gamePlayed = 6L
@@ -79,7 +79,7 @@ class AnonymousObjectsUnitTest {
7979
}
8080

8181
@Test
82-
fun `when anonymous object with a supertype, the explict casting is not required`() {
82+
fun `when anonymous object with a supertype, explict casting isn't required`() {
8383
fun docTitleToUppercase(doc: Doc) = doc.title.uppercase()
8484

8585
val article = object : Doc(title = "A nice article", author = "Kai", words = 420) {
@@ -89,7 +89,7 @@ class AnonymousObjectsUnitTest {
8989
}
9090

9191
@Test
92-
fun `when anonymous object of Any, the explict casting does not work`() {
92+
fun `when anonymous object of Any, explict casting doesn't work`() {
9393

9494
// the class
9595
data class Player(

0 commit comments

Comments
 (0)