public class BsonReadingAndWritingTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.modeshape.schematic.document.Document |
input |
protected org.modeshape.schematic.document.Document |
output |
protected boolean |
print |
protected org.modeshape.schematic.internal.document.BsonReader |
reader |
protected org.modeshape.schematic.internal.document.BsonWriter |
writer |
| Constructor and Description |
|---|
BsonReadingAndWritingTest() |
protected org.modeshape.schematic.internal.document.BsonReader reader
protected org.modeshape.schematic.internal.document.BsonWriter writer
protected org.modeshape.schematic.document.Document input
protected org.modeshape.schematic.document.Document output
protected boolean print
public BsonReadingAndWritingTest()
public void beforeTest()
public void afterTest()
public void shouldReadExampleBsonStream() throws IOException
IOExceptionpublic void shouldRoundTripSimpleBsonObjectWithStringValue()
public void shouldRoundTripSimpleBsonObjectWithBooleanValue()
public void shouldRoundTripSimpleBsonObjectWithIntValue()
public void shouldRoundTripSimpleBsonObjectWithLongValue()
public void shouldRoundTripSimpleBsonObjectWithFloatValue()
public void shouldRoundTripSimpleBsonObjectWithDoubleValue()
public void shouldRoundTripSimpleBsonObjectWithDateValue()
public void shouldRoundTripSimpleBsonObjectWithTimestampValue()
public void shouldRoundTripSimpleBsonObjectWithObjectId()
public void shouldRoundTripSimpleBsonObjectWithCode()
public void shouldRoundTripSimpleBsonObjectWithCodeWithScope()
public void shouldRoundTripSimpleBsonObjectWithMaxKey()
public void shouldRoundTripSimpleBsonObjectWithMinKey()
public void shouldRoundTripSimpleBsonObjectWithSymbol()
public void shouldRoundTripSimpleBsonObjectWithNull()
public void shouldRoundTripSimpleBsonObjectWithBinary1()
public void shouldRoundTripSimpleBsonObjectWithBinary2() throws Exception
Exceptionpublic void shouldRoundTripSimpleBsonObjectWithUuid()
public void shouldRoundTripSimpleBsonObjectWithPattern()
public void shouldRoundTripSimpleBsonObjectWithPatternAndFlags()
public void shouldRoundTripSimpleBsonObjectWithArray()
public void shouldRoundTripBsonObjectWithTwoFields()
public void shouldRoundTripBsonObjectWithThreeFields()
public void shouldRoundTripBsonObjectWithNestedDocument()
public void shouldRoundTripLargeModeShapeDocument() throws Exception
Exception@FixFor(value="MODE-2074") public void shouldRoundTripBsonWithLargeStringField() throws Exception
Exception@FixFor(value="MODE-2074") public void shouldRoundTripBsonWithLargeStringFieldFromMultipleThreads() throws Exception
Exception@FixFor(value="MODE-2430") public void shouldRoundTripLargeStringsSuccessively() throws Exception
Exception@FixFor(value="MODE-2615") public void shouldRoundTripDocumentWithMultiByteUTF8Chars() throws Exception
Exceptionprotected String readFile(String filePath) throws IOException
IOExceptionprotected void assertRoundtrip(org.modeshape.schematic.document.Document input)
protected void assertRoundtrip(org.modeshape.schematic.document.Document input, boolean compareToOtherImpls)
protected org.modeshape.schematic.document.Document writeThenRead(org.modeshape.schematic.document.Document object, boolean compareToOtherImpls)
protected org.bson.BSONObject createMongoData(org.modeshape.schematic.document.Document document)
protected Object createMongoData(Object value)
protected Map<String,Object> createJacksonData(org.modeshape.schematic.document.Document document)
protected Object createJacksonData(Object value)
protected void assertSame(byte[] b1, byte[] b2, String name1, String name2)
protected InputStream resource(String resourcePath)
Copyright © 2008–2021 JBoss, a division of Red Hat. All rights reserved.