public class BsonInputStreamTest extends Object
Modifier and Type | Field and Description |
---|---|
static UUID |
TEST_UUID
A test UUID with a very clear byte pattern.
|
Constructor and Description |
---|
BsonInputStreamTest() |
Modifier and Type | Method and Description |
---|---|
void |
testAvailable()
Test method for
BsonInputStream.available() . |
void |
testReadArrayDocument()
Test method for
BsonInputStream.readDocument() . |
void |
testReadBadUuid()
Test method for
BsonInputStream.readDocument() . |
void |
testReadBigUtf8StringWorldDocument()
Test method for
BsonInputStream.readDocument() . |
void |
testReadHelloWorldDocument()
Test method for
BsonInputStream.readDocument() . |
void |
testReadThrowsEof()
Test method for
BsonInputStream.readDocument() . |
void |
testReadUuid()
Test method for
BsonInputStream.readDocument() . |
void |
testReadWriteCompleteDocument()
Test method for
BsonInputStream.readDocument() . |
void |
testReadWriteLong()
/** Test method for
BsonInputStream.readDocument() . |
void |
testSerializeCompleteDocument()
Test method for
BsonInputStream.readDocument() . |
public static final UUID TEST_UUID
public void testAvailable() throws IOException
BsonInputStream.available()
.IOException
- On a failure reading the test document.public void testReadArrayDocument() throws IOException
BsonInputStream.readDocument()
.IOException
- On a failure reading the test document.public void testReadBadUuid() throws IOException
BsonInputStream.readDocument()
.IOException
- On a failure reading the test document.public void testReadBigUtf8StringWorldDocument() throws IOException
BsonInputStream.readDocument()
.IOException
- On a failure reading the test document.public void testReadHelloWorldDocument() throws IOException
BsonInputStream.readDocument()
.IOException
- On a failure reading the test document.public void testReadThrowsEof() throws IOException
BsonInputStream.readDocument()
.IOException
- On a failure reading the test document.public void testReadUuid() throws IOException
BsonInputStream.readDocument()
.IOException
- On a failure reading the test document.public void testReadWriteCompleteDocument() throws IOException
BsonInputStream.readDocument()
.IOException
- On a failure reading the test document.public void testReadWriteLong() throws IOException
BsonInputStream.readDocument()
.IOException
- On a failure reading the test document.public void testSerializeCompleteDocument() throws IOException, ClassNotFoundException
BsonInputStream.readDocument()
.IOException
- On a failure reading the test document.ClassNotFoundException
- On a failure reading the documents.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.