use of com.google.gerrit.testing.InMemoryModule in project gerrit by GerritCodeReview.
the class FakeQueryAccountsTest method createInjector.
@Override
protected Injector createInjector() {
Config fakeConfig = new Config(config);
InMemoryModule.setDefaults(fakeConfig);
fakeConfig.setString("index", null, "type", "fake");
return Guice.createInjector(new InMemoryModule(fakeConfig));
}
use of com.google.gerrit.testing.InMemoryModule in project gerrit by GerritCodeReview.
the class LuceneQueryAccountsTest method createInjector.
@Override
protected Injector createInjector() {
Config luceneConfig = new Config(config);
InMemoryModule.setDefaults(luceneConfig);
return Guice.createInjector(new InMemoryModule(luceneConfig));
}
use of com.google.gerrit.testing.InMemoryModule in project gerrit by GerritCodeReview.
the class FakeQueryProjectsTest method createInjector.
@Override
protected Injector createInjector() {
Config fakeConfig = new Config(config);
InMemoryModule.setDefaults(fakeConfig);
fakeConfig.setString("index", null, "type", "fake");
return Guice.createInjector(new InMemoryModule(fakeConfig));
}
use of com.google.gerrit.testing.InMemoryModule in project gerrit by GerritCodeReview.
the class AllProjectsCreatorTest method setUp.
@Before
public void setUp() throws Exception {
InMemoryModule inMemoryModule = new InMemoryModule();
inMemoryModule.inject(this);
// Creates an empty All-Projects.
try (Repository repo = repoManager.createRepository(allProjectsName)) {
// Intentionally empty.
}
}
Aggregations