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

Protected Member Functions

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)

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

Member Function Documentation

◆ getActualClassName()

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

◆ setUp()

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

◆ testAsReadOnlyByteBuffer()

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

◆ testAsReadOnlyByteBufferList()

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

◆ testByteAt()

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

◆ testByteIterable()

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

◆ testByteIterator()

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

◆ testCharsetToString()

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

◆ testConcat_empty()

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 core/src/test/java/com/google/protobuf/LiteralByteStringTest.java.

◆ testCopyTo_ByteArrayOffsetLength()

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

◆ testCopyTo_ByteArrayOffsetLengthErrors()

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

◆ testCopyTo_ByteBuffer()

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

◆ testEquals()

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

◆ testExpectedType()

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

◆ testGetTreeDepth()

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

◆ testHashCode()

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

◆ testIsBalanced()

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

◆ testJavaSerialization()

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

◆ testMarkAndReset()

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

◆ testMarkSupported()

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

◆ testNewCodedInput()

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

◆ testNewInput()

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

◆ testNewInput_skip()

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

◆ testNewOutput()

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

◆ testPartialHash()

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

◆ testPeekCachedHashCode()

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

◆ testSize()

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

◆ testToByteArray()

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

◆ testToString()

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

◆ testToString_raisesException()

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

◆ testToString_returnsCanonicalEmptyString()

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

◆ testWriteTo()

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

◆ testWriteToInternalShouldExposeInternalBufferToOutputStream()

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

◆ testWriteToShouldExposeInternalBufferToByteOutput()

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

◆ testWriteToShouldNotExposeInternalBufferToOutputStream()

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

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

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


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