// Path: src/main/java/org/mongodb/MongoDatabase.java
// public class MongoDatabase {
// 
//     private DB surrogate;
// 
//     public MongoDatabase(final DB surrogate) {
//         this.setSurrogate(surrogate);
// 
//     }
// 
//     public CommandResult executeCommand(final Document cmd) {
// 
//         CommandResult result = new CommandResult(getSurrogate().command(cmd.getSurrogate()));
//         return result;
//     }
// 
//     public Object getName() {
//         return getSurrogate().getName();
//     }
// 
//     public MongoCollection<Document> getCollection(final String name, final MongoCollectionOptions options) {
//         DBCollection collection = getSurrogate().getCollection(name);
//         collection.setReadPreference(options.getReadPreference());
//         collection.setWriteConcern(options.getWriteConcern());
//         return new MongoCollection<Document>(collection);
//     }
// 
//     public DB getSurrogate() {
//         return surrogate;
//     }
// 
//     public void setSurrogate(final DB surrogate) {
//         this.surrogate = surrogate;
//     }
// 
// }


import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import org.junit.BeforeClass;
import org.junit.Test;
import org.mongodb.MongoDatabase;
import com.mongodb.MongoClient;
package me.lightspeed7.mongofs;





public class MongoFileMethodsTest {

    private static final String DB_NAME = "MongoFSTest-fileStore";

    private static MongoDatabase database;

    private static MongoClient mongoClient;

    private static MongoFileStore store;

    private static MongoFile file;

    private static MongoFile newFile;

    // initializer
    @BeforeClass
    public static void initial() throws IOException {

        mongoClient = MongoTestConfig.construct();

        mongoClient.dropDatabase(DB_NAME);
// Path: src/main/java/org/mongodb/MongoDatabase.java
// public class MongoDatabase {
// 
//     private DB surrogate;
// 
//     public MongoDatabase(final DB surrogate) {
//         this.setSurrogate(surrogate);
// 
//     }
// 
//     public CommandResult executeCommand(final Document cmd) {
// 
//         CommandResult result = new CommandResult(getSurrogate().command(cmd.getSurrogate()));
//         return result;
//     }
// 
//     public Object getName() {
//         return getSurrogate().getName();
//     }
// 
//     public MongoCollection<Document> getCollection(final String name, final MongoCollectionOptions options) {
//         DBCollection collection = getSurrogate().getCollection(name);
//         collection.setReadPreference(options.getReadPreference());
//         collection.setWriteConcern(options.getWriteConcern());
//         return new MongoCollection<Document>(collection);
//     }
// 
//     public DB getSurrogate() {
//         return surrogate;
//     }
// 
//     public void setSurrogate(final DB surrogate) {
//         this.surrogate = surrogate;
//     }
// 
// }


// Path: src/test/java/me/lightspeed7/mongofs/MongoFileMethodsTest.java
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import org.junit.BeforeClass;
import org.junit.Test;
import org.mongodb.MongoDatabase;
import com.mongodb.MongoClient;

package me.lightspeed7.mongofs;





public class MongoFileMethodsTest {

    private static final String DB_NAME = "MongoFSTest-fileStore";

    private static MongoDatabase database;

    private static MongoClient mongoClient;

    private static MongoFileStore store;

    private static MongoFile file;

    private static MongoFile newFile;

    // initializer
    @BeforeClass
    public static void initial() throws IOException {

        mongoClient = MongoTestConfig.construct();

        mongoClient.dropDatabase(DB_NAME);
        database = new MongoDatabase(mongoClient.getDB(DB_NAME));