Skip to content

Commit

Permalink
Updated RoundTripTest
Browse files Browse the repository at this point in the history
  • Loading branch information
sksamuel committed Apr 28, 2024
1 parent 9ddb439 commit a3d06d2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.sksamuel.centurion.avro

import com.sksamuel.centurion.avro.decoders.Decoder
import com.sksamuel.centurion.avro.decoders.SpecificRecordDecoder
import com.sksamuel.centurion.avro.encoders.SpecificRecordEncoder
import com.sksamuel.centurion.avro.encoders.Wine
Expand All @@ -10,6 +11,7 @@ import io.kotest.matchers.shouldBe
class RoundTripTest : FunSpec() {
init {
test("round trip encode / decode") {
Decoder.useStrictPrimitiveDecoders = true
val schema = ReflectionSchemaBuilder().schema(RoundTrip::class)
val rt = RoundTrip(
s = null,
Expand Down Expand Up @@ -37,6 +39,7 @@ class RoundTripTest : FunSpec() {
actual.maps shouldBe actual.maps
actual.wine shouldBe actual.wine
actual.arrays shouldBe actual.arrays
Decoder.useStrictPrimitiveDecoders = false
}
}
}
Expand Down

0 comments on commit a3d06d2

Please sign in to comment.