diff options
author | Anuraag Agrawal <anuraaga@gmail.com> | 2017-04-04 18:58:46 +0900 |
---|---|---|
committer | Anuraag Agrawal <anuraaga@gmail.com> | 2017-04-05 17:44:26 +0900 |
commit | 09328db1ff546e5c535ee0c3fbbe2b1f3ec07b63 (patch) | |
tree | f8e7ce03ca7c25c673e7756f3aa6be1b236f68ca /java | |
parent | 662f97841e838802987e5d208c1d898226c06ef1 (diff) |
Fix test for unexpected type url when parsing Any. Currently, the test fails since TestAllTypes doesn't have field '@type', which is the same test as testUnknownFields.
Diffstat (limited to 'java')
-rw-r--r-- | java/util/src/test/java/com/google/protobuf/util/JsonFormatTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/util/src/test/java/com/google/protobuf/util/JsonFormatTest.java b/java/util/src/test/java/com/google/protobuf/util/JsonFormatTest.java index 395d7458..808e542d 100644 --- a/java/util/src/test/java/com/google/protobuf/util/JsonFormatTest.java +++ b/java/util/src/test/java/com/google/protobuf/util/JsonFormatTest.java @@ -1099,7 +1099,7 @@ public class JsonFormatTest extends TestCase { public void testParserUnexpectedTypeUrl() throws Exception { try { - TestAllTypes.Builder builder = TestAllTypes.newBuilder(); + Any.Builder builder = Any.newBuilder(); mergeFromJson( "{\n" + " \"@type\": \"type.googleapis.com/json_test.TestAllTypes\",\n" |