Skip to content

Commit a4b72b5

Browse files
committed
[JAVA-239]: make sure src/main/org/bson has no mongodb deps
1 parent d410506 commit a4b72b5

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

src/test/org/bson/BSONTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
import org.testng.annotations.*;
2727

2828
import com.mongodb.util.*;
29+
import org.testng.Assert;
2930

30-
public class BSONTest extends TestCase {
31+
public class BSONTest extends Assert {
3132

3233

3334
public BSONTest(){
@@ -319,9 +320,4 @@ public void testRandomRoundTrips(){
319320

320321
List<String> _data = new ArrayList<String>();
321322

322-
323-
public static void main( String args[] ){
324-
(new BSONTest()).runConsole();
325-
}
326-
327323
}

src/test/org/bson/PoolOutputBufferTest.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,15 @@
1818

1919
package org.bson;
2020

21-
import java.io.*;
22-
import java.nio.*;
21+
import com.mongodb.util.TestCase;
2322
import java.util.*;
24-
import java.util.zip.*;
2523

2624
import org.testng.annotations.Test;
2725

28-
import com.mongodb.util.*;
2926
import org.bson.io.*;
27+
import org.testng.Assert;
3028

31-
public class PoolOutputBufferTest extends TestCase {
29+
public class PoolOutputBufferTest extends Assert {
3230

3331
public PoolOutputBufferTest(){
3432
for ( int x = 8; x<(PoolOutputBuffer.BUF_SIZE*3); x*=2 ){
@@ -75,8 +73,4 @@ public void testBig1(){
7573

7674
List<String> _data = new ArrayList<String>();
7775

78-
public static void main( String args[] ){
79-
(new PoolOutputBufferTest()).runConsole();
80-
}
81-
8276
}

0 commit comments

Comments
 (0)