From a865cc31dc4b3c4e9d4d8d95294685198316d2c6 Mon Sep 17 00:00:00 2001
From: Kushagra Nigam <93257324+TheMarvelFan@users.noreply.github.com>
Date: Sun, 29 Sep 2024 01:05:45 +0530
Subject: [PATCH] Removed usage of 'parameter(String)' method in
ConstructorParameterNotAFieldTest.kt and replaced it with 'to(String)'
---
.../testing/objects/ConstructorParameterNotAFieldTest.kt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler-plugin/src/test/kotlin/tech/mappie/testing/objects/ConstructorParameterNotAFieldTest.kt b/compiler-plugin/src/test/kotlin/tech/mappie/testing/objects/ConstructorParameterNotAFieldTest.kt
index b2fc3ea9..67c84899 100644
--- a/compiler-plugin/src/test/kotlin/tech/mappie/testing/objects/ConstructorParameterNotAFieldTest.kt
+++ b/compiler-plugin/src/test/kotlin/tech/mappie/testing/objects/ConstructorParameterNotAFieldTest.kt
@@ -36,7 +36,7 @@ class ConstructorParameterNotAFieldTest {
class Mapper : ObjectMappie() {
override fun map(from: Input) = mapping {
- parameter("fake") fromProperty Input::input
+ to("fake") fromProperty Input::input
}
}
"""
@@ -61,7 +61,7 @@ class ConstructorParameterNotAFieldTest {
class Mapper : ObjectMappie() {
override fun map(from: Input) = mapping {
- parameter(0.toString()) fromProperty Input::input
+ to(0.toString()) fromProperty Input::input
}
}
"""