Public Member Functions | Private Member Functions | List of all members
com.google.protobuf.util.JsonFormatTest Class Reference
Inheritance diagram for com.google.protobuf.util.JsonFormatTest:
Inheritance graph
[legend]

Public Member Functions

 JsonFormatTest ()
 
void testAllFields () throws Exception
 
void testAnyFields () throws Exception
 
void testAnyInMaps () throws Exception
 
void testCustomJsonName () throws Exception
 
void testDuration () throws Exception
 
void testEmptyWrapperTypesInAny () throws Exception
 
void testFieldMask () throws Exception
 
void testHtmlEscape () throws Exception
 
void testIncludingDefaultValueFields () throws Exception
 
void testJsonException () throws Exception
 
void testMapEnumNullValueIsIgnored () throws Exception
 
void testMapFields () throws Exception
 
void testMapNullValueIsRejected () throws Exception
 
void testNullFirstInDuplicateOneof () throws Exception
 
void testNullInOneof () throws Exception
 
void testNullLastInDuplicateOneof () throws Exception
 
void testOmittingInsignificantWhiteSpace () throws Exception
 
void testParserAcceptBase64Variants () throws Exception
 
void testParserAcceptFloatingPointValueForIntegerField () throws Exception
 
void testParserAcceptNonQuotedObjectKey () throws Exception
 
void testParserAcceptNull () throws Exception
 
void testParserAcceptStringForNumericField () throws Exception
 
void testParserIgnoringUnknownEnums () throws Exception
 
void testParserIgnoringUnknownFields () throws Exception
 
void testParserIntegerEnumValue () throws Exception
 
void testParserMissingTypeUrl () throws Exception
 
void testParserRejectDuplicatedFields () throws Exception
 
void testParserRejectInvalidBase64 () throws Exception
 
void testParserRejectInvalidEnumValue () throws Exception
 
void testParserRejectOutOfRangeNumericValues () throws Exception
 
void testParserRejectTrailingComma () throws Exception
 
void testParserSupportAliasEnums () throws Exception
 
void testParserUnexpectedTypeUrl () throws Exception
 
void testParserUnknownFields () throws Exception
 
void testPreservingProtoFieldNames () throws Exception
 
void testPrintingEnumsAsInts () throws Exception
 
void testRecursionLimit () throws Exception
 
void testRepeatedUnknownEnum () throws Exception
 
void testSortedMapKeys () throws Exception
 
void testSpecialFloatValues () throws Exception
 
void testStruct () throws Exception
 
void testTimestamp () throws Exception
 
void testUnknownEnumMap () throws Exception
 
void testUnknownEnumValues () throws Exception
 
void testWrappers () throws Exception
 

Private Member Functions

void assertAccepts (String name, String value) throws IOException
 
void assertRejects (String name, String value)
 
void assertRoundTripEquals (Message message) throws Exception
 
void assertRoundTripEquals (Message message, TypeRegistry registry) throws Exception
 
void mergeFromJson (String json, Message.Builder builder) throws IOException
 
void mergeFromJsonIgnoringUnknownFields (String json, Message.Builder builder) throws IOException
 
void setAllFields (TestAllTypes.Builder builder)
 
String toCompactJsonString (Message message) throws IOException
 
String toJsonString (Message message) throws IOException
 
String toSortedJsonString (Message message) throws IOException
 

Detailed Description

Definition at line 80 of file JsonFormatTest.java.

Constructor & Destructor Documentation

◆ JsonFormatTest()

com.google.protobuf.util.JsonFormatTest.JsonFormatTest ( )
inline

Definition at line 81 of file JsonFormatTest.java.

Member Function Documentation

◆ assertAccepts()

void com.google.protobuf.util.JsonFormatTest.assertAccepts ( String  name,
String  value 
) throws IOException
inlineprivate

Definition at line 350 of file JsonFormatTest.java.

◆ assertRejects()

void com.google.protobuf.util.JsonFormatTest.assertRejects ( String  name,
String  value 
)
inlineprivate

Definition at line 332 of file JsonFormatTest.java.

◆ assertRoundTripEquals() [1/2]

void com.google.protobuf.util.JsonFormatTest.assertRoundTripEquals ( Message  message) throws Exception
inlineprivate

Definition at line 142 of file JsonFormatTest.java.

◆ assertRoundTripEquals() [2/2]

void com.google.protobuf.util.JsonFormatTest.assertRoundTripEquals ( Message  message,
TypeRegistry  registry 
) throws Exception
inlineprivate

Definition at line 146 of file JsonFormatTest.java.

◆ mergeFromJson()

void com.google.protobuf.util.JsonFormatTest.mergeFromJson ( String  json,
Message.Builder  builder 
) throws IOException
inlineprivate

Definition at line 165 of file JsonFormatTest.java.

◆ mergeFromJsonIgnoringUnknownFields()

void com.google.protobuf.util.JsonFormatTest.mergeFromJsonIgnoringUnknownFields ( String  json,
Message.Builder  builder 
) throws IOException
inlineprivate

Definition at line 169 of file JsonFormatTest.java.

◆ setAllFields()

void com.google.protobuf.util.JsonFormatTest.setAllFields ( TestAllTypes.Builder  builder)
inlineprivate

Definition at line 86 of file JsonFormatTest.java.

◆ testAllFields()

void com.google.protobuf.util.JsonFormatTest.testAllFields ( ) throws Exception
inline

Definition at line 174 of file JsonFormatTest.java.

◆ testAnyFields()

void com.google.protobuf.util.JsonFormatTest.testAnyFields ( ) throws Exception
inline

Definition at line 853 of file JsonFormatTest.java.

◆ testAnyInMaps()

void com.google.protobuf.util.JsonFormatTest.testAnyInMaps ( ) throws Exception
inline

Definition at line 1045 of file JsonFormatTest.java.

◆ testCustomJsonName()

void com.google.protobuf.util.JsonFormatTest.testCustomJsonName ( ) throws Exception
inline

Definition at line 1264 of file JsonFormatTest.java.

◆ testDuration()

void com.google.protobuf.util.JsonFormatTest.testDuration ( ) throws Exception
inline

Definition at line 785 of file JsonFormatTest.java.

◆ testEmptyWrapperTypesInAny()

void com.google.protobuf.util.JsonFormatTest.testEmptyWrapperTypesInAny ( ) throws Exception
inline

Definition at line 1600 of file JsonFormatTest.java.

◆ testFieldMask()

void com.google.protobuf.util.JsonFormatTest.testFieldMask ( ) throws Exception
inline

Definition at line 793 of file JsonFormatTest.java.

◆ testHtmlEscape()

void com.google.protobuf.util.JsonFormatTest.testHtmlEscape ( ) throws Exception
inline

Definition at line 1271 of file JsonFormatTest.java.

◆ testIncludingDefaultValueFields()

void com.google.protobuf.util.JsonFormatTest.testIncludingDefaultValueFields ( ) throws Exception
inline

Definition at line 1280 of file JsonFormatTest.java.

◆ testJsonException()

void com.google.protobuf.util.JsonFormatTest.testJsonException ( ) throws Exception
inline

Definition at line 1647 of file JsonFormatTest.java.

◆ testMapEnumNullValueIsIgnored()

void com.google.protobuf.util.JsonFormatTest.testMapEnumNullValueIsIgnored ( ) throws Exception
inline

Definition at line 701 of file JsonFormatTest.java.

◆ testMapFields()

void com.google.protobuf.util.JsonFormatTest.testMapFields ( ) throws Exception
inline

Definition at line 535 of file JsonFormatTest.java.

◆ testMapNullValueIsRejected()

void com.google.protobuf.util.JsonFormatTest.testMapNullValueIsRejected ( ) throws Exception
inline

Definition at line 672 of file JsonFormatTest.java.

◆ testNullFirstInDuplicateOneof()

void com.google.protobuf.util.JsonFormatTest.testNullFirstInDuplicateOneof ( ) throws Exception
inline

Definition at line 467 of file JsonFormatTest.java.

◆ testNullInOneof()

void com.google.protobuf.util.JsonFormatTest.testNullInOneof ( ) throws Exception
inline

Definition at line 459 of file JsonFormatTest.java.

◆ testNullLastInDuplicateOneof()

void com.google.protobuf.util.JsonFormatTest.testNullLastInDuplicateOneof ( ) throws Exception
inline

Definition at line 474 of file JsonFormatTest.java.

◆ testOmittingInsignificantWhiteSpace()

void com.google.protobuf.util.JsonFormatTest.testOmittingInsignificantWhiteSpace ( ) throws Exception
inline

Definition at line 1543 of file JsonFormatTest.java.

◆ testParserAcceptBase64Variants()

void com.google.protobuf.util.JsonFormatTest.testParserAcceptBase64Variants ( ) throws Exception
inline

Definition at line 1178 of file JsonFormatTest.java.

◆ testParserAcceptFloatingPointValueForIntegerField()

void com.google.protobuf.util.JsonFormatTest.testParserAcceptFloatingPointValueForIntegerField ( ) throws Exception
inline

Definition at line 302 of file JsonFormatTest.java.

◆ testParserAcceptNonQuotedObjectKey()

void com.google.protobuf.util.JsonFormatTest.testParserAcceptNonQuotedObjectKey ( ) throws Exception
inline

Definition at line 709 of file JsonFormatTest.java.

◆ testParserAcceptNull()

void com.google.protobuf.util.JsonFormatTest.testParserAcceptNull ( ) throws Exception
inline

Definition at line 398 of file JsonFormatTest.java.

◆ testParserAcceptStringForNumericField()

void com.google.protobuf.util.JsonFormatTest.testParserAcceptStringForNumericField ( ) throws Exception
inline

Definition at line 277 of file JsonFormatTest.java.

◆ testParserIgnoringUnknownEnums()

void com.google.protobuf.util.JsonFormatTest.testParserIgnoringUnknownEnums ( ) throws Exception
inline

Definition at line 1210 of file JsonFormatTest.java.

◆ testParserIgnoringUnknownFields()

void com.google.protobuf.util.JsonFormatTest.testParserIgnoringUnknownFields ( ) throws Exception
inline

Definition at line 1204 of file JsonFormatTest.java.

◆ testParserIntegerEnumValue()

void com.google.protobuf.util.JsonFormatTest.testParserIntegerEnumValue ( ) throws Exception
inline

Definition at line 1256 of file JsonFormatTest.java.

◆ testParserMissingTypeUrl()

void com.google.protobuf.util.JsonFormatTest.testParserMissingTypeUrl ( ) throws Exception
inline

Definition at line 1124 of file JsonFormatTest.java.

◆ testParserRejectDuplicatedFields()

void com.google.protobuf.util.JsonFormatTest.testParserRejectDuplicatedFields ( ) throws Exception
inline

Definition at line 481 of file JsonFormatTest.java.

◆ testParserRejectInvalidBase64()

void com.google.protobuf.util.JsonFormatTest.testParserRejectInvalidBase64 ( ) throws Exception
inline

Definition at line 1174 of file JsonFormatTest.java.

◆ testParserRejectInvalidEnumValue()

void com.google.protobuf.util.JsonFormatTest.testParserRejectInvalidEnumValue ( ) throws Exception
inline

Definition at line 1183 of file JsonFormatTest.java.

◆ testParserRejectOutOfRangeNumericValues()

void com.google.protobuf.util.JsonFormatTest.testParserRejectOutOfRangeNumericValues ( ) throws Exception
inline

Definition at line 358 of file JsonFormatTest.java.

◆ testParserRejectTrailingComma()

void com.google.protobuf.util.JsonFormatTest.testParserRejectTrailingComma ( ) throws Exception
inline

Definition at line 1149 of file JsonFormatTest.java.

◆ testParserSupportAliasEnums()

void com.google.protobuf.util.JsonFormatTest.testParserSupportAliasEnums ( ) throws Exception
inline

Definition at line 1217 of file JsonFormatTest.java.

◆ testParserUnexpectedTypeUrl()

void com.google.protobuf.util.JsonFormatTest.testParserUnexpectedTypeUrl ( ) throws Exception
inline

Definition at line 1134 of file JsonFormatTest.java.

◆ testParserUnknownFields()

void com.google.protobuf.util.JsonFormatTest.testParserUnknownFields ( ) throws Exception
inline

Definition at line 1193 of file JsonFormatTest.java.

◆ testPreservingProtoFieldNames()

void com.google.protobuf.util.JsonFormatTest.testPreservingProtoFieldNames ( ) throws Exception
inline

Definition at line 1513 of file JsonFormatTest.java.

◆ testPrintingEnumsAsInts()

void com.google.protobuf.util.JsonFormatTest.testPrintingEnumsAsInts ( ) throws Exception
inline

Definition at line 1536 of file JsonFormatTest.java.

◆ testRecursionLimit()

void com.google.protobuf.util.JsonFormatTest.testRecursionLimit ( ) throws Exception
inline

Definition at line 1616 of file JsonFormatTest.java.

◆ testRepeatedUnknownEnum()

void com.google.protobuf.util.JsonFormatTest.testRepeatedUnknownEnum ( ) throws Exception
inline

Definition at line 1244 of file JsonFormatTest.java.

◆ testSortedMapKeys()

void com.google.protobuf.util.JsonFormatTest.testSortedMapKeys ( ) throws Exception
inline

Definition at line 1677 of file JsonFormatTest.java.

◆ testSpecialFloatValues()

void com.google.protobuf.util.JsonFormatTest.testSpecialFloatValues ( ) throws Exception
inline

Definition at line 257 of file JsonFormatTest.java.

◆ testStruct()

void com.google.protobuf.util.JsonFormatTest.testStruct ( ) throws Exception
inline

Definition at line 804 of file JsonFormatTest.java.

◆ testTimestamp()

void com.google.protobuf.util.JsonFormatTest.testTimestamp ( ) throws Exception
inline

Definition at line 774 of file JsonFormatTest.java.

◆ testUnknownEnumMap()

void com.google.protobuf.util.JsonFormatTest.testUnknownEnumMap ( ) throws Exception
inline

Definition at line 1234 of file JsonFormatTest.java.

◆ testUnknownEnumValues()

void com.google.protobuf.util.JsonFormatTest.testUnknownEnumValues ( ) throws Exception
inline

Definition at line 227 of file JsonFormatTest.java.

◆ testWrappers()

void com.google.protobuf.util.JsonFormatTest.testWrappers ( ) throws Exception
inline

Definition at line 718 of file JsonFormatTest.java.

◆ toCompactJsonString()

String com.google.protobuf.util.JsonFormatTest.toCompactJsonString ( Message  message) throws IOException
inlineprivate

Definition at line 158 of file JsonFormatTest.java.

◆ toJsonString()

String com.google.protobuf.util.JsonFormatTest.toJsonString ( Message  message) throws IOException
inlineprivate

Definition at line 155 of file JsonFormatTest.java.

◆ toSortedJsonString()

String com.google.protobuf.util.JsonFormatTest.toSortedJsonString ( Message  message) throws IOException
inlineprivate

Definition at line 161 of file JsonFormatTest.java.


The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:08