From ea61bde5da89866c435e42e296c1423c3b826aa6 Mon Sep 17 00:00:00 2001 From: Nadav Samet Date: Thu, 23 Nov 2023 08:40:34 -0800 Subject: [PATCH] Add test for Any containing a timestamp --- src/test/scala/scalapb/json4s/AnyFormatSpec.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/scala/scalapb/json4s/AnyFormatSpec.scala b/src/test/scala/scalapb/json4s/AnyFormatSpec.scala index 3069d22..5fca795 100644 --- a/src/test/scala/scalapb/json4s/AnyFormatSpec.scala +++ b/src/test/scala/scalapb/json4s/AnyFormatSpec.scala @@ -130,8 +130,9 @@ class AnyFormatSpec extends AnyFlatSpec with Matchers with JavaAssertions { val input = ScalaJsonParser.fromJson[AnyContainer](optionalAnyJson) - input.getOptionalAny.unpack[com.google.protobuf.Timestamp] must be( - com.google.protobuf.Timestamp() + input.getOptionalAny + .unpack[com.google.protobuf.timestamp.Timestamp] must be( + com.google.protobuf.timestamp.Timestamp() ) ScalaJsonPrinter.toJson(input) must be(optionalAnyJson)