/** * Returns a {@link MongoDbProvider} instance. */ public MongoDbProvider getMongoDbProvider() { if (mongoDbProvider == null) { mongoDbProvider = new MongoDbProvider(mongoDBHost, mongoDBPort, mongoDBdatabase); } return mongoDbProvider; }
/** * Initializes the MongoDB version of a {@link CertPathStoreTestBase}. */ public CertPathStoreTest() throws Exception { MongoDbProvider mongoDbProvider = new MongoDbProvider("127.0.0.1", "27017", "wiab_test"); this.database = mongoDbProvider.getDatabaseForName(TEST_DATABASE); certPathStore = new MongoDbStore(database); }
/** * Initializes the MongoDB version of a {@link AccountStoreTestBase}. */ public AccountStoreTest() throws Exception { MongoDbProvider mongoDbProvider = new MongoDbProvider("127.0.0.1", "27017", "wiab_test"); this.database = mongoDbProvider.getDatabaseForName(TEST_DATABASE); store = new MongoDbStore(database); }
/** * Initializes the MongoDB version of a {@link AttachmentStoreTestBase}. */ public AttachmentStoreTest() throws Exception { MongoDbProvider mongoDbProvider = new MongoDbProvider("127.0.0.1", "27017", "wiab_test"); this.database = mongoDbProvider.getDatabaseForName(TEST_DATABASE); store = new MongoDbStore(database); }
/** * Initializes the MongoDB version of a {@link CertPathStoreTestBase}. */ public CertPathStoreTest() throws Exception { MongoDbProvider mongoDbProvider = new MongoDbProvider("127.0.0.1", "27017", "wiab_test"); this.database = mongoDbProvider.getDatabaseForName(TEST_DATABASE); certPathStore = new MongoDbStore(database); }
/** * Initializes the MongoDB version of a {@link AccountStoreTestBase}. */ public AccountStoreTest() throws Exception { MongoDbProvider mongoDbProvider = new MongoDbProvider("127.0.0.1", "27017", "wiab_test"); this.database = mongoDbProvider.getDatabaseForName(TEST_DATABASE); store = new MongoDbStore(database); }
/** * Initializes the MongoDB version of a {@link AttachmentStoreTestBase}. */ public AttachmentStoreTest() throws Exception { MongoDbProvider mongoDbProvider = new MongoDbProvider("127.0.0.1", "27017", "wiab_test"); this.database = mongoDbProvider.getDatabaseForName(TEST_DATABASE); store = new MongoDbStore(database); }