Skip to content

Commit

Permalink
update test not to rely on order of params
Browse files Browse the repository at this point in the history
  • Loading branch information
PJ Fanning committed Jan 29, 2020
1 parent c77bf43 commit a59c56e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class OverrideValSerializerTest extends SerializerTest {
val id = UUID.randomUUID()
//TODO https://github.com/FasterXML/jackson-module-scala/issues/218
//the json should also include "id":"<idAsString>"
serialize(Sub(id, "something")) shouldBe """{"type":"baseclass","something":"something"}"""
val json = serialize(Sub(id, "something"))
//json should include (s""""id":"${id.toString}"""")
json should include (""""type":"baseclass"""")
json should include (""""something":"something"""")
}
}

0 comments on commit a59c56e

Please sign in to comment.