
com.capitalone.dashboard.testutil.FongoConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hygieia-common Show documentation
Show all versions of hygieia-common Show documentation
Core package shared by API layer and Microservices
The newest version!
package com.capitalone.dashboard.testutil;
import com.capitalone.dashboard.config.MongoConfig;
import com.github.fakemongo.Fongo;
import com.mongodb.MongoClient;
import org.springframework.context.annotation.Bean;
public class FongoConfig extends MongoConfig {
@Bean
public MongoClient mongo() {
return new Fongo(getDatabaseName()).getMongo();
}
@Override
protected String getDatabaseName() {
return "test-db";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy