@Test public void writeTest() throws NettyBsonReaderException { assert mongoDoc != null : "A null document parameter has been injected"; com.torodb.mongowp.bson.BsonDocument wpDocument = MongoBsonTranslator.translate(mongoDoc); writer.writeInto(byteBuf, wpDocument); org.bson.BsonDocument read = MongoBsonUtils.read(byteBuf); assertEquals(mongoDoc, read); }
public void writeInto(ByteBuf byteBuf, BsonDocument doc) { doc.accept(VISITOR, byteBuf); }
NettyBsonDocumentWriter { public void writeInto(ByteBuf byteBuf, BsonDocument doc) { doc.accept(VISITOR, byteBuf); } }
NettyBsonDocumentWriter { public void writeInto(ByteBuf byteBuf, BsonDocument doc) { doc.accept(VISITOR, byteBuf); }  }
NettyBsonDocumentWriter { public void writeInto(ByteBuf byteBuf, BsonDocument doc) { doc.accept(VISITOR, byteBuf); }  void writeInto(ByteBuf byteBuf, BsonDocument doc); }
NettyBsonDocumentWriter { public void writeInto(ByteBuf byteBuf, BsonDocument doc) { doc.accept(VISITOR, byteBuf); }  void writeInto(ByteBuf byteBuf, BsonDocument doc);  }