We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 752fe2e commit 6b42219Copy full SHA for 6b42219
1 file changed
src/test/org/bson/BSONTest.java
@@ -28,7 +28,7 @@
28
29
import org.testng.annotations.Test;
30
31
-import org.bson.types.CodeWScope;
+import org.bson.types.*;
32
import org.bson.io.*;
33
34
public class BSONTest extends TestCase {
@@ -118,6 +118,17 @@ public void testCode()
118
_test( code_object , 53 , "52918d2367533165bfc617df50335cbb" );
119
}
120
121
+ @Test
122
+ public void testBinary()
123
+ throws IOException{
124
+ byte[] data = new byte[10000];
125
+ for(int i=0; i<10000; i++) {
126
+ data[i] = 1;
127
+ }
128
+ BSONObject binary_object = new BasicBSONObject( "bin" , data);
129
+ _test( binary_object , 10019 , "682d9a636619b135fa9801ac42c48a10" );
130
131
+
132
@Test
133
public void testOBBig1(){
134
BasicOutputBuffer a = new BasicOutputBuffer();
0 commit comments