Package com.google.protobuf
Class UnredactedDebugFormatForTest
java.lang.Object
com.google.protobuf.UnredactedDebugFormatForTest
These APIs are restricted to test-only targets, and are suitable for test purposes where it is
impractical to compare protos directly via ProtoTruth (e.g. log output).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
LikeTextFormat.printer().printToString(message)
, but for test assertion purposes.static String
LikeTextFormat.printer().printToString(fields)
, but for test assertion purposes.static String
LikeTextFormat.printer().emittingSingleLine(true).printToString(message)
, but for test assertion purposes.static String
LikeTextFormat.printer().emittingSingleLine(true).printToString(fields)
, but for test assertion purposes.
-
Constructor Details
-
UnredactedDebugFormatForTest
private UnredactedDebugFormatForTest()
-
-
Method Details
-
unredactedMultilineString
LikeTextFormat.printer().printToString(message)
, but for test assertion purposes. -
unredactedMultilineString
LikeTextFormat.printer().printToString(fields)
, but for test assertion purposes. -
unredactedSingleLineString
LikeTextFormat.printer().emittingSingleLine(true).printToString(message)
, but for test assertion purposes. -
unredactedSingleLineString
LikeTextFormat.printer().emittingSingleLine(true).printToString(fields)
, but for test assertion purposes.
-