@@ -35,6 +35,7 @@ import io.kotest.matchers.types.shouldBeInstanceOf
35
35
import io.ktor.http.HttpStatusCode
36
36
import kotlin.time.Duration.Companion.seconds
37
37
import kotlinx.coroutines.withTimeout
38
+ import kotlinx.serialization.ExperimentalSerializationApi
38
39
import kotlinx.serialization.Serializable
39
40
import kotlinx.serialization.json.JsonPrimitive
40
41
import org.junit.Test
@@ -44,6 +45,7 @@ import org.junit.Test
44
45
internal class UnarySnapshotTests {
45
46
private val testTimeout = 5 .seconds
46
47
48
+ @OptIn(ExperimentalSerializationApi ::class )
47
49
@Test
48
50
fun `short reply` () =
49
51
goldenUnaryFile(" success-basic-reply-short.json" ) {
@@ -57,6 +59,7 @@ internal class UnarySnapshotTests {
57
59
}
58
60
}
59
61
62
+ @OptIn(ExperimentalSerializationApi ::class )
60
63
@Test
61
64
fun `long reply` () =
62
65
goldenUnaryFile(" success-basic-reply-long.json" ) {
@@ -219,6 +222,7 @@ internal class UnarySnapshotTests {
219
222
}
220
223
}
221
224
225
+ @OptIn(ExperimentalSerializationApi ::class )
222
226
@Test
223
227
fun `properly translates json text` () =
224
228
goldenUnaryFile(" success-constraint-decoding-json.json" ) {
@@ -305,6 +309,7 @@ internal class UnarySnapshotTests {
305
309
}
306
310
}
307
311
312
+ @OptIn(ExperimentalSerializationApi ::class )
308
313
@Test
309
314
fun `function call contains null param` () =
310
315
goldenUnaryFile(" success-function-call-null.json" ) {
@@ -317,6 +322,7 @@ internal class UnarySnapshotTests {
317
322
}
318
323
}
319
324
325
+ @OptIn(ExperimentalSerializationApi ::class )
320
326
@Test
321
327
fun `function call contains json literal` () =
322
328
goldenUnaryFile(" success-function-call-json-literal.json" ) {
@@ -335,6 +341,7 @@ internal class UnarySnapshotTests {
335
341
}
336
342
}
337
343
344
+ @OptIn(ExperimentalSerializationApi ::class )
338
345
@Test
339
346
fun `function call has no arguments field` () =
340
347
goldenUnaryFile(" success-function-call-empty-arguments.json" ) {
0 commit comments