|
static final byte[] | BYTES = ByteStringTest.getTestBytes(1234, 11337766L) |
|
static final String | CLASSNAME = NioByteString.class.getSimpleName() |
|
static final ByteString | EMPTY = new NioByteString(ByteBuffer.wrap(new byte[0])) |
|
static final int | EXPECTED_HASH = ByteString.wrap(BYTES).hashCode() |
|
Tests for NioByteString.
Definition at line 52 of file NioByteStringTest.java.
◆ forString()
static ByteString com.google.protobuf.NioByteStringTest.forString |
( |
String |
str | ) |
|
|
inlinestaticprivate |
◆ getActualClassName()
String com.google.protobuf.NioByteStringTest.getActualClassName |
( |
Object |
object | ) |
|
|
inlineprotected |
◆ mungedBytes()
byte [] com.google.protobuf.NioByteStringTest.mungedBytes |
( |
| ) |
|
|
inlineprivate |
◆ testAsReadOnlyByteBuffer()
void com.google.protobuf.NioByteStringTest.testAsReadOnlyByteBuffer |
( |
| ) |
|
|
inline |
◆ testAsReadOnlyByteBufferList()
void com.google.protobuf.NioByteStringTest.testAsReadOnlyByteBufferList |
( |
| ) |
|
|
inline |
◆ testByteAt()
void com.google.protobuf.NioByteStringTest.testByteAt |
( |
| ) |
|
|
inline |
◆ testByteIterable()
void com.google.protobuf.NioByteStringTest.testByteIterable |
( |
| ) |
|
|
inline |
◆ testByteIterator()
void com.google.protobuf.NioByteStringTest.testByteIterator |
( |
| ) |
|
|
inline |
◆ testCharsetToString()
void com.google.protobuf.NioByteStringTest.testCharsetToString |
( |
| ) |
|
|
inline |
◆ testConcat_empty()
void com.google.protobuf.NioByteStringTest.testConcat_empty |
( |
| ) |
|
|
inline |
◆ testCopyTo_ByteArrayOffsetLength()
void com.google.protobuf.NioByteStringTest.testCopyTo_ByteArrayOffsetLength |
( |
| ) |
|
|
inline |
◆ testCopyTo_ByteArrayOffsetLengthErrors()
void com.google.protobuf.NioByteStringTest.testCopyTo_ByteArrayOffsetLengthErrors |
( |
| ) |
|
|
inline |
◆ testCopyTo_ByteBuffer()
void com.google.protobuf.NioByteStringTest.testCopyTo_ByteBuffer |
( |
| ) |
|
|
inline |
◆ testEquals()
void com.google.protobuf.NioByteStringTest.testEquals |
( |
| ) |
|
|
inline |
◆ testEqualsLiteralByteString()
void com.google.protobuf.NioByteStringTest.testEqualsLiteralByteString |
( |
| ) |
|
|
inline |
◆ testEqualsRopeByteString()
void com.google.protobuf.NioByteStringTest.testEqualsRopeByteString |
( |
| ) |
|
|
inline |
◆ testExpectedType()
void com.google.protobuf.NioByteStringTest.testExpectedType |
( |
| ) |
|
|
inline |
◆ testGetTreeDepth()
void com.google.protobuf.NioByteStringTest.testGetTreeDepth |
( |
| ) |
|
|
inline |
◆ testHashCode()
void com.google.protobuf.NioByteStringTest.testHashCode |
( |
| ) |
|
|
inline |
◆ testIsBalanced()
void com.google.protobuf.NioByteStringTest.testIsBalanced |
( |
| ) |
|
|
inline |
◆ testJavaSerialization()
void com.google.protobuf.NioByteStringTest.testJavaSerialization |
( |
| ) |
throws Exception |
|
inline |
◆ testMarkAndReset()
void com.google.protobuf.NioByteStringTest.testMarkAndReset |
( |
| ) |
throws IOException |
|
inline |
◆ testMarkSupported()
void com.google.protobuf.NioByteStringTest.testMarkSupported |
( |
| ) |
|
|
inline |
◆ testNewCodedInput()
void com.google.protobuf.NioByteStringTest.testNewCodedInput |
( |
| ) |
throws IOException |
|
inline |
◆ testNewInput()
void com.google.protobuf.NioByteStringTest.testNewInput |
( |
| ) |
throws IOException |
|
inline |
◆ testNewInput_skip()
void com.google.protobuf.NioByteStringTest.testNewInput_skip |
( |
| ) |
throws IOException |
|
inline |
◆ testNewOutput()
void com.google.protobuf.NioByteStringTest.testNewOutput |
( |
| ) |
throws IOException |
|
inline |
◆ testPartialHash()
void com.google.protobuf.NioByteStringTest.testPartialHash |
( |
| ) |
|
|
inline |
◆ testPeekCachedHashCode()
void com.google.protobuf.NioByteStringTest.testPeekCachedHashCode |
( |
| ) |
|
|
inline |
◆ testSize()
void com.google.protobuf.NioByteStringTest.testSize |
( |
| ) |
|
|
inline |
◆ testToByteArray()
void com.google.protobuf.NioByteStringTest.testToByteArray |
( |
| ) |
|
|
inline |
◆ testToString()
void com.google.protobuf.NioByteStringTest.testToString |
( |
| ) |
|
|
inline |
◆ testToString_raisesException()
void com.google.protobuf.NioByteStringTest.testToString_raisesException |
( |
| ) |
|
|
inline |
◆ testToString_returnsCanonicalEmptyString()
void com.google.protobuf.NioByteStringTest.testToString_returnsCanonicalEmptyString |
( |
| ) |
|
|
inline |
◆ testWriteTo()
void com.google.protobuf.NioByteStringTest.testWriteTo |
( |
| ) |
throws IOException |
|
inline |
◆ testWriteToInternalShouldExposeInternalBufferToOutputStream()
void com.google.protobuf.NioByteStringTest.testWriteToInternalShouldExposeInternalBufferToOutputStream |
( |
| ) |
throws IOException |
|
inline |
◆ testWriteToShouldExposeInternalBufferToByteOutput()
void com.google.protobuf.NioByteStringTest.testWriteToShouldExposeInternalBufferToByteOutput |
( |
| ) |
throws IOException |
|
inline |
◆ testWriteToShouldNotExposeInternalBufferToOutputStream()
void com.google.protobuf.NioByteStringTest.testWriteToShouldNotExposeInternalBufferToOutputStream |
( |
| ) |
throws IOException |
|
inline |
◆ backingBuffer
final ByteBuffer com.google.protobuf.NioByteStringTest.backingBuffer = ByteBuffer.wrap(BYTES.clone()) |
|
private |
◆ BYTES
final byte [] com.google.protobuf.NioByteStringTest.BYTES = ByteStringTest.getTestBytes(1234, 11337766L) |
|
staticprivate |
◆ CLASSNAME
final String com.google.protobuf.NioByteStringTest.CLASSNAME = NioByteString.class.getSimpleName() |
|
staticprivate |
◆ EMPTY
final ByteString com.google.protobuf.NioByteStringTest.EMPTY = new NioByteString(ByteBuffer.wrap(new byte[0])) |
|
staticprivate |
◆ EXPECTED_HASH
final int com.google.protobuf.NioByteStringTest.EXPECTED_HASH = ByteString.wrap(BYTES).hashCode() |
|
staticprivate |
◆ testString
The documentation for this class was generated from the following file: