Skip to content

Commit

Permalink
create new mappers for each test case (wrong state being kept by jack…
Browse files Browse the repository at this point in the history
…son-databind)
  • Loading branch information
pjfanning committed Oct 8, 2023
1 parent 2de406e commit 899e73d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ class EitherDeserializerTest extends DeserializerTest with EitherJsonTestSupport
deserialize("""{"either":{"r":{"a":"1","b":null,"c":1}}}""", typeRef) shouldBe EitherField(Right(PlainPojoObject("1", None, 1)))
deserialize("""{"either":{"right":{"a":"1","b":null,"c":1}}}""", typeRef) shouldBe EitherField(Right(PlainPojoObject("1", None, 1)))
}

override def deserialize[T](value: String, typeReference: TypeReference[T]): T = {
newMapper.readValue(value, typeReference)
}
}


Expand Down

0 comments on commit 899e73d

Please sign in to comment.