Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
com.google.protobuf.LiteralByteStringTest Class Reference
Inheritance diagram for com.google.protobuf.LiteralByteStringTest:
Inheritance graph
[legend]

Public Member Functions

void setUp () throws Exception
 
void testAsReadOnlyByteBuffer ()
 
void testAsReadOnlyByteBuffer ()
 
void testAsReadOnlyByteBufferList ()
 
void testAsReadOnlyByteBufferList ()
 
void testByteAt ()
 
void testByteAt ()
 
void testByteIterable ()
 
void testByteIterable ()
 
void testByteIterator ()
 
void testByteIterator ()
 
void testCharsetToString ()
 
void testCharsetToString ()
 
void testConcat_empty ()
 
void testConcat_empty ()
 
void testCopyTo_ByteArrayOffsetLength ()
 
void testCopyTo_ByteArrayOffsetLength ()
 
void testCopyTo_ByteArrayOffsetLengthErrors ()
 
void testCopyTo_ByteArrayOffsetLengthErrors ()
 
void testCopyTo_ByteBuffer ()
 
void testCopyTo_ByteBuffer ()
 
void testEquals ()
 
void testEquals ()
 
void testExpectedType ()
 
void testExpectedType ()
 
void testGetTreeDepth ()
 
void testGetTreeDepth ()
 
void testHashCode ()
 
void testHashCode ()
 
void testIsBalanced ()
 
void testIsBalanced ()
 
void testJavaSerialization () throws Exception
 
void testJavaSerialization () throws Exception
 
void testMarkAndReset () throws IOException
 
void testMarkAndReset () throws IOException
 
void testMarkSupported ()
 
void testMarkSupported ()
 
void testNewCodedInput () throws IOException
 
void testNewCodedInput () throws IOException
 
void testNewInput () throws IOException
 
void testNewInput () throws IOException
 
void testNewInput_readZeroBytes () throws IOException
 
void testNewInput_skip () throws IOException
 
void testNewInput_skip () throws IOException
 
void testNewOutput () throws IOException
 
void testNewOutput () throws IOException
 
void testPartialHash ()
 
void testPartialHash ()
 
void testPeekCachedHashCode ()
 
void testPeekCachedHashCode ()
 
void testSize ()
 
void testSize ()
 
void testToByteArray ()
 
void testToByteArray ()
 
void testToString () throws UnsupportedEncodingException
 
void testToString () throws UnsupportedEncodingException
 
void testToString_raisesException ()
 
void testToString_raisesException ()
 
void testToString_returnsCanonicalEmptyString ()
 
void testToString_returnsCanonicalEmptyString ()
 
void testWriteTo () throws IOException
 
void testWriteTo () throws IOException
 
void testWriteToInternalShouldExposeInternalBufferToOutputStream () throws IOException
 
void testWriteToInternalShouldExposeInternalBufferToOutputStream () throws IOException
 
void testWriteToShouldExposeInternalBufferToByteOutput () throws IOException
 
void testWriteToShouldExposeInternalBufferToByteOutput () throws IOException
 
void testWriteToShouldNotExposeInternalBufferToOutputStream () throws IOException
 
void testWriteToShouldNotExposeInternalBufferToOutputStream () throws IOException
 

Protected Member Functions

String getActualClassName (Object object)
 
String getActualClassName (Object object)
 
void setUp () throws Exception
 

Protected Attributes

String classUnderTest
 
int expectedHashCode
 
byte[] referenceBytes
 
ByteString stringUnderTest
 

Static Protected Attributes

static final String UTF_8 = "UTF-8"
 

Detailed Description

Test

LiteralByteString

by setting up a reference string in setUp(). This class is designed to be extended for testing extensions of

LiteralByteString

such as

BoundedByteString

, see BoundedByteStringTest.

Author
carla.nosp@m.nton.nosp@m.@goog.nosp@m.le.c.nosp@m.om (Carl Haverl)

Test

LiteralByteString

by setting up a reference string in setUp(). This class is designed to be extended for testing extensions of

LiteralByteString

such as

BoundedByteString

, see BoundedByteStringTest.

Definition at line 55 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/LiteralByteStringTest.java.

Member Function Documentation

◆ getActualClassName() [1/2]

String com.google.protobuf.LiteralByteStringTest.getActualClassName ( Object  object)
inlineprotected

◆ getActualClassName() [2/2]

String com.google.protobuf.LiteralByteStringTest.getActualClassName ( Object  object)
inlineprotected

◆ setUp() [1/2]

void com.google.protobuf.LiteralByteStringTest.setUp ( ) throws Exception
inlineprotected

◆ setUp() [2/2]

void com.google.protobuf.LiteralByteStringTest.setUp ( ) throws Exception
inline

◆ testAsReadOnlyByteBuffer() [1/2]

void com.google.protobuf.LiteralByteStringTest.testAsReadOnlyByteBuffer ( )
inline

◆ testAsReadOnlyByteBuffer() [2/2]

void com.google.protobuf.LiteralByteStringTest.testAsReadOnlyByteBuffer ( )
inline

◆ testAsReadOnlyByteBufferList() [1/2]

void com.google.protobuf.LiteralByteStringTest.testAsReadOnlyByteBufferList ( )
inline

◆ testAsReadOnlyByteBufferList() [2/2]

void com.google.protobuf.LiteralByteStringTest.testAsReadOnlyByteBufferList ( )
inline

◆ testByteAt() [1/2]

void com.google.protobuf.LiteralByteStringTest.testByteAt ( )
inline

◆ testByteAt() [2/2]

void com.google.protobuf.LiteralByteStringTest.testByteAt ( )
inline

◆ testByteIterable() [1/2]

void com.google.protobuf.LiteralByteStringTest.testByteIterable ( )
inline

◆ testByteIterable() [2/2]

void com.google.protobuf.LiteralByteStringTest.testByteIterable ( )
inline

◆ testByteIterator() [1/2]

void com.google.protobuf.LiteralByteStringTest.testByteIterator ( )
inline

◆ testByteIterator() [2/2]

void com.google.protobuf.LiteralByteStringTest.testByteIterator ( )
inline

◆ testCharsetToString() [1/2]

void com.google.protobuf.LiteralByteStringTest.testCharsetToString ( )
inline

◆ testCharsetToString() [2/2]

void com.google.protobuf.LiteralByteStringTest.testCharsetToString ( )
inline

◆ testConcat_empty() [1/2]

void com.google.protobuf.LiteralByteStringTest.testConcat_empty ( )
inline

Make sure we keep things simple when concatenating with empty. See also {}.

Definition at line 550 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/LiteralByteStringTest.java.

◆ testConcat_empty() [2/2]

void com.google.protobuf.LiteralByteStringTest.testConcat_empty ( )
inline

Make sure we keep things simple when concatenating with empty. See also {}.

Definition at line 661 of file protobuf/java/core/src/test/java/com/google/protobuf/LiteralByteStringTest.java.

◆ testCopyTo_ByteArrayOffsetLength() [1/2]

void com.google.protobuf.LiteralByteStringTest.testCopyTo_ByteArrayOffsetLength ( )
inline

◆ testCopyTo_ByteArrayOffsetLength() [2/2]

void com.google.protobuf.LiteralByteStringTest.testCopyTo_ByteArrayOffsetLength ( )
inline

◆ testCopyTo_ByteArrayOffsetLengthErrors() [1/2]

void com.google.protobuf.LiteralByteStringTest.testCopyTo_ByteArrayOffsetLengthErrors ( )
inline

◆ testCopyTo_ByteArrayOffsetLengthErrors() [2/2]

void com.google.protobuf.LiteralByteStringTest.testCopyTo_ByteArrayOffsetLengthErrors ( )
inline

◆ testCopyTo_ByteBuffer() [1/2]

void com.google.protobuf.LiteralByteStringTest.testCopyTo_ByteBuffer ( )
inline

◆ testCopyTo_ByteBuffer() [2/2]

void com.google.protobuf.LiteralByteStringTest.testCopyTo_ByteBuffer ( )
inline

◆ testEquals() [1/2]

void com.google.protobuf.LiteralByteStringTest.testEquals ( )
inline

◆ testEquals() [2/2]

void com.google.protobuf.LiteralByteStringTest.testEquals ( )
inline

◆ testExpectedType() [1/2]

void com.google.protobuf.LiteralByteStringTest.testExpectedType ( )
inline

◆ testExpectedType() [2/2]

void com.google.protobuf.LiteralByteStringTest.testExpectedType ( )
inline

◆ testGetTreeDepth() [1/2]

void com.google.protobuf.LiteralByteStringTest.testGetTreeDepth ( )
inline

◆ testGetTreeDepth() [2/2]

void com.google.protobuf.LiteralByteStringTest.testGetTreeDepth ( )
inline

◆ testHashCode() [1/2]

void com.google.protobuf.LiteralByteStringTest.testHashCode ( )
inline

◆ testHashCode() [2/2]

void com.google.protobuf.LiteralByteStringTest.testHashCode ( )
inline

◆ testIsBalanced() [1/2]

void com.google.protobuf.LiteralByteStringTest.testIsBalanced ( )
inline

◆ testIsBalanced() [2/2]

void com.google.protobuf.LiteralByteStringTest.testIsBalanced ( )
inline

◆ testJavaSerialization() [1/2]

void com.google.protobuf.LiteralByteStringTest.testJavaSerialization ( ) throws Exception
inline

◆ testJavaSerialization() [2/2]

void com.google.protobuf.LiteralByteStringTest.testJavaSerialization ( ) throws Exception
inline

◆ testMarkAndReset() [1/2]

void com.google.protobuf.LiteralByteStringTest.testMarkAndReset ( ) throws IOException
inline

◆ testMarkAndReset() [2/2]

void com.google.protobuf.LiteralByteStringTest.testMarkAndReset ( ) throws IOException
inline

◆ testMarkSupported() [1/2]

void com.google.protobuf.LiteralByteStringTest.testMarkSupported ( )
inline

◆ testMarkSupported() [2/2]

void com.google.protobuf.LiteralByteStringTest.testMarkSupported ( )
inline

◆ testNewCodedInput() [1/2]

void com.google.protobuf.LiteralByteStringTest.testNewCodedInput ( ) throws IOException
inline

◆ testNewCodedInput() [2/2]

void com.google.protobuf.LiteralByteStringTest.testNewCodedInput ( ) throws IOException
inline

◆ testNewInput() [1/2]

void com.google.protobuf.LiteralByteStringTest.testNewInput ( ) throws IOException
inline

◆ testNewInput() [2/2]

void com.google.protobuf.LiteralByteStringTest.testNewInput ( ) throws IOException
inline

◆ testNewInput_readZeroBytes()

void com.google.protobuf.LiteralByteStringTest.testNewInput_readZeroBytes ( ) throws IOException
inline

◆ testNewInput_skip() [1/2]

void com.google.protobuf.LiteralByteStringTest.testNewInput_skip ( ) throws IOException
inline

◆ testNewInput_skip() [2/2]

void com.google.protobuf.LiteralByteStringTest.testNewInput_skip ( ) throws IOException
inline

◆ testNewOutput() [1/2]

void com.google.protobuf.LiteralByteStringTest.testNewOutput ( ) throws IOException
inline

◆ testNewOutput() [2/2]

void com.google.protobuf.LiteralByteStringTest.testNewOutput ( ) throws IOException
inline

◆ testPartialHash() [1/2]

void com.google.protobuf.LiteralByteStringTest.testPartialHash ( )
inline

◆ testPartialHash() [2/2]

void com.google.protobuf.LiteralByteStringTest.testPartialHash ( )
inline

◆ testPeekCachedHashCode() [1/2]

void com.google.protobuf.LiteralByteStringTest.testPeekCachedHashCode ( )
inline

◆ testPeekCachedHashCode() [2/2]

void com.google.protobuf.LiteralByteStringTest.testPeekCachedHashCode ( )
inline

◆ testSize() [1/2]

void com.google.protobuf.LiteralByteStringTest.testSize ( )
inline

◆ testSize() [2/2]

void com.google.protobuf.LiteralByteStringTest.testSize ( )
inline

◆ testToByteArray() [1/2]

void com.google.protobuf.LiteralByteStringTest.testToByteArray ( )
inline

◆ testToByteArray() [2/2]

void com.google.protobuf.LiteralByteStringTest.testToByteArray ( )
inline

◆ testToString() [1/2]

void com.google.protobuf.LiteralByteStringTest.testToString ( ) throws UnsupportedEncodingException
inline

◆ testToString() [2/2]

void com.google.protobuf.LiteralByteStringTest.testToString ( ) throws UnsupportedEncodingException
inline

◆ testToString_raisesException() [1/2]

void com.google.protobuf.LiteralByteStringTest.testToString_raisesException ( )
inline

◆ testToString_raisesException() [2/2]

void com.google.protobuf.LiteralByteStringTest.testToString_raisesException ( )
inline

◆ testToString_returnsCanonicalEmptyString() [1/2]

void com.google.protobuf.LiteralByteStringTest.testToString_returnsCanonicalEmptyString ( )
inline

◆ testToString_returnsCanonicalEmptyString() [2/2]

void com.google.protobuf.LiteralByteStringTest.testToString_returnsCanonicalEmptyString ( )
inline

◆ testWriteTo() [1/2]

void com.google.protobuf.LiteralByteStringTest.testWriteTo ( ) throws IOException
inline

◆ testWriteTo() [2/2]

void com.google.protobuf.LiteralByteStringTest.testWriteTo ( ) throws IOException
inline

◆ testWriteToInternalShouldExposeInternalBufferToOutputStream() [1/2]

void com.google.protobuf.LiteralByteStringTest.testWriteToInternalShouldExposeInternalBufferToOutputStream ( ) throws IOException
inline

◆ testWriteToInternalShouldExposeInternalBufferToOutputStream() [2/2]

void com.google.protobuf.LiteralByteStringTest.testWriteToInternalShouldExposeInternalBufferToOutputStream ( ) throws IOException
inline

◆ testWriteToShouldExposeInternalBufferToByteOutput() [1/2]

void com.google.protobuf.LiteralByteStringTest.testWriteToShouldExposeInternalBufferToByteOutput ( ) throws IOException
inline

◆ testWriteToShouldExposeInternalBufferToByteOutput() [2/2]

void com.google.protobuf.LiteralByteStringTest.testWriteToShouldExposeInternalBufferToByteOutput ( ) throws IOException
inline

◆ testWriteToShouldNotExposeInternalBufferToOutputStream() [1/2]

void com.google.protobuf.LiteralByteStringTest.testWriteToShouldNotExposeInternalBufferToOutputStream ( ) throws IOException
inline

◆ testWriteToShouldNotExposeInternalBufferToOutputStream() [2/2]

void com.google.protobuf.LiteralByteStringTest.testWriteToShouldNotExposeInternalBufferToOutputStream ( ) throws IOException
inline

Member Data Documentation

◆ classUnderTest

String com.google.protobuf.LiteralByteStringTest.classUnderTest
protected

◆ expectedHashCode

int com.google.protobuf.LiteralByteStringTest.expectedHashCode
protected

◆ referenceBytes

byte [] com.google.protobuf.LiteralByteStringTest.referenceBytes
protected

◆ stringUnderTest

ByteString com.google.protobuf.LiteralByteStringTest.stringUnderTest
protected

◆ UTF_8

static final String com.google.protobuf.LiteralByteStringTest.UTF_8 = "UTF-8"
staticprotected

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:06