Skip to content

Commit 7989272

Browse files
committed
Update CreatorTest.scala
1 parent a90678c commit 7989272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/scala/com/fasterxml/jackson/module/scala/deser/CreatorTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ object CreatorTest
5757
case class CaseClassAlternativeConstructor(script: String, dummy: Int) {
5858
@JsonCreator
5959
def this(script: String) = {
60-
this(script, 0)
60+
this(script, -1)
6161
}
6262
}
6363

@@ -140,7 +140,7 @@ class CreatorTest extends DeserializationFixture {
140140
// this part of test relies on the 2nd constructor being used (with the JsonCreator annotation)
141141
val bean2 = """{"script":"abc"}"""
142142
val cc2 = f.readValue(bean2, classOf[CaseClassAlternativeConstructor])
143-
cc2 shouldEqual CaseClassAlternativeConstructor("abc", 0)
143+
cc2 shouldEqual CaseClassAlternativeConstructor("abc", -1)
144144
}
145145

146146
it should "use primary constructor if no JsonCreator annotation" in { f =>

0 commit comments

Comments
 (0)