Example usage for org.springframework.data.mongodb MongoDbFactory MongoDbFactory

List of usage examples for org.springframework.data.mongodb MongoDbFactory MongoDbFactory

Introduction

In this page you can find the example usage for org.springframework.data.mongodb MongoDbFactory MongoDbFactory.

Prototype

MongoDbFactory

Source Link

Usage

From source file:com.avanza.ymer.YmerConverterTestBase.java

public YmerConverterTestBase(ConverterTest<?> testCase) {
    this.testCase = testCase;
    this.dummyMongoDbFactory = new MongoDbFactory() {
        // The MongoDbFactory is never used during the tests.
        @Override//from   w  w w.j a v  a 2s . co  m
        public DB getDb(String dbName) throws DataAccessException {
            return null;
        }

        @Override
        public DB getDb() throws DataAccessException {
            return null;
        }

        @Override
        public PersistenceExceptionTranslator getExceptionTranslator() {
            return null;
        }
    };
}