Examples of BasicOutputBuffer


Examples of org.bson.io.BasicOutputBuffer

    }

    @Test(expected = BSONException.class)
    public void nullCharacterInKeyShouldThrowException() {
        BasicBSONEncoder encoder = new BasicBSONEncoder();
        encoder.set(new BasicOutputBuffer());
        encoder.putString("ke\u0000y", "helloWorld");
    }
View Full Code Here

Examples of org.bson.io.BasicOutputBuffer

    }

    @Test(expected = BSONException.class)
    public void nullCharacterInRegexStringShouldThrowException() {
        BasicBSONEncoder encoder = new BasicBSONEncoder();
        encoder.set(new BasicOutputBuffer());
        encoder._putObjectField("key", Pattern.compile("hello\u0000World"));
    }
View Full Code Here

Examples of org.bson.io.BasicOutputBuffer

    }

    @Test
    public void nullCharacterInStringShouldNotThrowException() {
        BasicBSONEncoder encoder = new BasicBSONEncoder();
        encoder.set(new BasicOutputBuffer());
        encoder.putString("key", "hell\u0000world");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.