Package de.flapdoodle.embed.mongo.config

Examples of de.flapdoodle.embed.mongo.config.MongodConfig


  @Before
  public void beforeEach() throws Exception {

    MongodStarter runtime = MongodStarter.getDefaultInstance();
    mongodExecutable = runtime.prepare(new MongodConfig(Version.V2_2_1, 12345, Network.localhostIsIPv6()));
    mongodProcess = mongodExecutable.start();
    Mongo mongo = new Mongo("localhost", 12345);
    db = mongo.getDB(DATABASE_NAME);

    // Create collections
View Full Code Here


    @BeforeClass
    public static void setUpClass() throws Exception {
        RuntimeConfig config = RuntimeConfig.getInstance(LOGGER);
        MongodStarter runtime = MongodStarter.getInstance(config);
        int freeServerPort = Network.getFreeServerPort();
        mongodExecutable = runtime.prepare(new MongodConfig(Version.Main.V2_3, freeServerPort,
                                                                             Network.localhostIsIPv6()));
        mongodProcess = mongodExecutable.start();

        binaryStore = new MongodbBinaryStore("localhost", freeServerPort, "test-" + UUID.randomUUID());
        binaryStore.start();
View Full Code Here

  private DB db;

  @BeforeMethod
  public void setup() throws Exception {
      MongodStarter runtime = MongodStarter.getDefaultInstance();
      MongodExecutable mongodExe = runtime.prepare( new MongodConfig(Version.V2_3_0, 12345,
          Network.localhostIsIPv6()) );
      mongod = mongodExe.start();
      mongo = new Mongo("localhost", 12345);
      db = mongo.getDB(DATABASE_NAME);
  }
View Full Code Here

  @SuppressWarnings("deprecation")
  @Before
  public void beforeEach() throws Exception {
    MongodStarter  runtime = MongodStarter .getDefaultInstance();
      mongodExe = runtime.prepare(new MongodConfig(Version.V2_0_1, MONGODB_PORT, Network.localhostIsIPv6()));
      mongod = mongodExe.start();
      mongo = new Mongo("localhost", MONGODB_PORT);
  }
View Full Code Here

TOP

Related Classes of de.flapdoodle.embed.mongo.config.MongodConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.