Skip to content

Commit e1e1226

Browse files
committed
fix mongo-kotlin annotations fix
1 parent 975401d commit e1e1226

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

lib/stove-testing-e2e-mongodb/src/main/kotlin/com/trendyol/stove/testing/e2e/mongodb/MongodbSystem.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ class MongodbSystem internal constructor(
167167
* Exposes the [MongoClient] to the [MongodbSystem]
168168
*/
169169
@MongoDsl
170+
@Suppress("unused")
170171
fun MongodbSystem.client(): MongoClient = mongoClient
171172
}
172173
}

lib/stove-testing-e2e-mongodb/src/test/kotlin/com/trendyol/stove/testing/e2e/mongodb/MongodbTestSystemTests.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,18 @@ class NoOpApplication : ApplicationUnderTest<Unit> {
5555
class MongodbTestSystemTests :
5656
FunSpec({
5757
data class ExampleInstanceWithObjectId(
58-
@BsonId
59-
@JsonAlias("_id")
58+
@param:BsonId
59+
@param:JsonAlias("_id")
6060
val id: ObjectId,
61-
@BsonProperty("aggregateId") val aggregateId: String,
62-
@BsonProperty("description") val description: String
61+
@param:BsonProperty("aggregateId") val aggregateId: String,
62+
@param:BsonProperty("description") val description: String
6363
)
6464

6565
data class ExampleInstanceWithStringObjectId(
66-
@JsonAlias("_id")
66+
@param:JsonAlias("_id")
6767
val id: String,
68-
@BsonProperty("aggregateId") val aggregateId: String,
69-
@BsonProperty("description") val description: String
68+
@param:BsonProperty("aggregateId") val aggregateId: String,
69+
@param:BsonProperty("description") val description: String
7070
)
7171

7272
test("should save and get with objectId") {

0 commit comments

Comments
 (0)