File tree 1 file changed +2
-2
lines changed
src/test/scala/com/fasterxml/jackson/module/scala/deser
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ object CreatorTest
57
57
case class CaseClassAlternativeConstructor (script : String , dummy : Int ) {
58
58
@ JsonCreator
59
59
def this (script : String ) = {
60
- this (script, 0 )
60
+ this (script, - 1 )
61
61
}
62
62
}
63
63
@@ -140,7 +140,7 @@ class CreatorTest extends DeserializationFixture {
140
140
// this part of test relies on the 2nd constructor being used (with the JsonCreator annotation)
141
141
val bean2 = """ {"script":"abc"}"""
142
142
val cc2 = f.readValue(bean2, classOf [CaseClassAlternativeConstructor ])
143
- cc2 shouldEqual CaseClassAlternativeConstructor (" abc" , 0 )
143
+ cc2 shouldEqual CaseClassAlternativeConstructor (" abc" , - 1 )
144
144
}
145
145
146
146
it should " use primary constructor if no JsonCreator annotation" in { f =>
You can’t perform that action at this time.
0 commit comments