Skip to content

Commit e996791

Browse files
committed
Try to reproduce missing annotations for Scala 2.11.12
1 parent a17a8d8 commit e996791

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

macros/src/test/scala/com/github/plokhotnyuk/jsoniter_scala/macros/JsonCodecMakerSpec.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ class JsonCodecMakerSpec extends WordSpec with Matchers {
115115

116116
case class Operators(`=<>!#%^&|*/\\~+-:$`: Int)
117117

118-
val codecOfNameOverridden: JsonValueCodec[NameOverridden] = make[NameOverridden](CodecMakerConfig())
119-
120118
case class Stringified(@stringified i: Int, @stringified bi: BigInt, @stringified l1: List[Int], l2: List[Int])
121119

122120
val stringified = Stringified(1, 2, List(1), List(2))
@@ -730,6 +728,7 @@ class JsonCodecMakerSpec extends WordSpec with Matchers {
730728
}.getMessage.contains("missing required field \"camel-case\", offset: 0x00000051"))
731729
}
732730
"serialize and deserialize with keys overridden by annotation and throw parse exception when they are missing" in {
731+
val codecOfNameOverridden: JsonValueCodec[NameOverridden] = make[NameOverridden](CodecMakerConfig())
733732
verifySerDeser(codecOfNameOverridden, NameOverridden(oldName = "VVV"), """{"new_name":"VVV"}""".getBytes)
734733
assert(intercept[JsonParseException] {
735734
verifyDeser(codecOfNameOverridden, NameOverridden(oldName = "VVV"), """{"oldName":"VVV"}""".getBytes)

0 commit comments

Comments
 (0)