use of org.apache.cayenne.di.spi.DefaultScope in project cayenne by apache.
the class JCacheCase method setupInjector.
@BeforeClass
public static void setupInjector() {
final DefaultScope testScope = new DefaultScope();
injector = DIBootstrap.createInjector(new ServerCaseModule(testScope), binder -> binder.bind(ServerRuntime.class).toProvider(CacheServerRuntimeProvider.class).in(testScope));
injector.getInstance(SchemaBuilder.class).rebuildSchema();
}
Aggregations