Skip to content

Commit cbf70d7

Browse files
author
Ryan
committed
added drop database test.
1 parent e23a79e commit cbf70d7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test/com/mongodb/DBCollectionTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ public void testFindOne() {
9494
}
9595
*/
9696

97+
/**
98+
* This was broken recently. Adding test.
99+
*/
100+
@Test
101+
public void testDropDatabase() throws Exception {
102+
final Mongo mongo = new Mongo( "127.0.0.1" );
103+
mongo.getDB("testDropDatabase").dropDatabase();
104+
mongo.close();
105+
}
106+
97107
@Test
98108
public void testDropIndex(){
99109
DBCollection c = _db.getCollection( "dropindex1" );

0 commit comments

Comments
 (0)