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.

pull/2937/head
Anuraag Agrawal 8 years ago
parent 662f97841e
commit 09328db1ff
  1. 2
      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"

Loading…
Cancel
Save