Skip to content

Commit 5459684

Browse files
committed
removed tests that don't make sense any more
1 parent 989e7fd commit 5459684

1 file changed

Lines changed: 0 additions & 40 deletions

File tree

src/test/com/mongodb/ByteTest.java

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -160,26 +160,6 @@ public void testObjcetId(){
160160
assertTrue( (new ObjectId(0 , 0 )).compareTo( new ObjectId() ) < 0 );
161161
}
162162

163-
// ByteEncoder.get()
164-
@Test(groups = {"basic"})
165-
public void testEncoderGet() {
166-
int max = Math.min( Bytes.CONNECTIONS_PER_HOST, 2 * Bytes.BUFS_PER_50M );
167-
int count = 0;
168-
169-
ArrayList<ByteEncoder> be = new ArrayList<ByteEncoder>();
170-
ByteEncoder b;
171-
while( (b = ByteEncoder.get()) != null && count < max ) {
172-
be.add( b );
173-
count++;
174-
}
175-
assertEquals( count, max );
176-
assertEquals( be.size(), max );
177-
178-
for( ByteEncoder bee : be ) {
179-
bee.done();
180-
}
181-
}
182-
183163

184164
@Test(groups = {"basic"})
185165
public void testBinary() {
@@ -209,26 +189,6 @@ public void testBinary() {
209189
decoder.done();
210190
}
211191

212-
@Test
213-
public void testDecoderGet() {
214-
int max = 6 * Bytes.BUFS_PER_50M;
215-
int count = 0;
216-
217-
ArrayList<ByteDecoder> be = new ArrayList<ByteDecoder>();
218-
ByteDecoder b;
219-
while( (b = ByteDecoder.get( _db , null ) ) != null && count < max ) {
220-
be.add( b );
221-
count++;
222-
}
223-
assertEquals( count, max );
224-
assertEquals( be.size(), max );
225-
226-
for( ByteDecoder bd : be ) {
227-
bd.done();
228-
}
229-
}
230-
231-
232192
private void go( DBObject o , int serialized_len ) {
233193
go( o, serialized_len, 0 );
234194
}

0 commit comments

Comments
 (0)