@Override protected void configure() { install(new SystemDatasetRuntimeModule().getInMemoryModules()); install(new PrivateModule() { @Override
@Override protected void configure() { install(new SystemDatasetRuntimeModule().getStandaloneModules()); install(new PrivateModule() { @Override
@Override protected void configure() { install(new SystemDatasetRuntimeModule().getInMemoryModules()); install(new PrivateModule() { @Override
@Override protected void configure() { install(new SystemDatasetRuntimeModule().getDistributedModules()); install(new PrivateModule() { @Override
@Override protected void configure() { install(new SystemDatasetRuntimeModule().getStandaloneModules()); install(new PrivateModule() { @Override
@Override protected void configure() { install(new SystemDatasetRuntimeModule().getDistributedModules()); install(new PrivateModule() { @Override
@BeforeClass public static void createInjector() { injector = Guice.createInjector( new ConfigModule(CConfiguration.create()), new NonCustomLocationUnitTestModule(), new SystemDatasetRuntimeModule().getInMemoryModules()); }
@BeforeClass public static void beforeClass() throws DatasetManagementException, IOException { CConfiguration cConf = CConfiguration.create(); cConf.set(Constants.CFG_LOCAL_DATA_DIR, TEMP_FOLDER.newFolder().getAbsolutePath()); txManager = new TransactionManager(new Configuration()); txManager.startAndWait(); Injector injector = Guice.createInjector( new ConfigModule(cConf), new LocalLocationModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new AbstractModule() { @Override protected void configure() { bind(DatasetDefinitionRegistryFactory.class) .to(DefaultDatasetDefinitionRegistryFactory.class).in(Scopes.SINGLETON); bind(DatasetFramework.class).to(InMemoryDatasetFramework.class); bind(NamespaceQueryAdmin.class).to(InMemoryNamespaceAdmin.class).in(Scopes.SINGLETON); } } ); datasetFramework = injector.getInstance(DatasetFramework.class); }
@BeforeClass public static void setup() { Injector injector = Guice.createInjector( new ConfigModule(), new NonCustomLocationUnitTestModule(), new InMemoryDiscoveryModule(), new DataFabricModules().getInMemoryModules(), new TransactionMetricsModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new PrivateModule() { @Override protected void configure() { bind(DatasetDefinitionRegistryFactory.class) .to(DefaultDatasetDefinitionRegistryFactory.class).in(Scopes.SINGLETON); bind(DatasetFramework.class).to(InMemoryDatasetFramework.class); expose(DatasetFramework.class); } }); dsFramework = injector.getInstance(DatasetFramework.class); }
@Override protected void before() throws Throwable { this.tmpFolder = new TemporaryFolder(); tmpFolder.create(); File localDataDir = tmpFolder.newFolder(); cConf = CConfiguration.create(); cConf.set(Constants.CFG_LOCAL_DATA_DIR, localDataDir.getAbsolutePath()); injector = Guice.createInjector( new ConfigModule(cConf), new NonCustomLocationUnitTestModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new TransactionModules().getInMemoryModules(), new TransactionExecutorModule(), new PrivateModule() { @Override protected void configure() { bind(DatasetDefinitionRegistryFactory.class) .to(DefaultDatasetDefinitionRegistryFactory.class).in(Scopes.SINGLETON); bind(DatasetFramework.class).to(InMemoryDatasetFramework.class); expose(DatasetFramework.class); } } ); txManager = injector.getInstance(TransactionManager.class); txManager.startAndWait(); framework = injector.getInstance(DatasetFramework.class); }
new ConfigModule(cConf), new LocalLocationModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new AbstractModule() { @Override
@BeforeClass public static void createInjector() throws IOException { CConfiguration cConf = CConfiguration.create(); cConf.set(Constants.CFG_LOCAL_DATA_DIR, TEMP_FOLDER.newFolder().getAbsolutePath()); Injector injector = Guice.createInjector( new ConfigModule(cConf), new DataSetsModules().getInMemoryModules(), new LocalLocationModule(), new TransactionInMemoryModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new NamespaceAdminTestModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getMasterModule() ); TransactionManager txManager = injector.getInstance(TransactionManager.class); txManager.startAndWait(); ownerStore = injector.getInstance(OwnerStore.class); }
new AppFabricServiceRuntimeModule().getDistributedModules(), new ProgramRunnerRuntimeModule().getDistributedModules(), new SystemDatasetRuntimeModule().getDistributedModules(), new KafkaLogAppenderModule(), new MetricsClientRuntimeModule().getDistributedModules(),
@BeforeClass public static void setup() throws Exception { CConfiguration conf = CConfiguration.create(); conf.set(Constants.CFG_LOCAL_DATA_DIR, tmpFolder.newFolder().getAbsolutePath()); Injector injector = Guice.createInjector( new ConfigModule(conf), new NonCustomLocationUnitTestModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getMasterModule(), new InMemoryDiscoveryModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new DataSetsModules().getInMemoryModules(), new DataFabricLevelDBModule(), new TransactionMetricsModule()); dsFramework = injector.getInstance(DatasetFramework.class); }
new NonCustomLocationUnitTestModule(), new NamespaceAdminTestModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new TransactionInMemoryModule(), new AuthorizationTestModule(),
@BeforeClass public static void setup() { Injector injector = Guice.createInjector( new ConfigModule(), Modules.override( new DataSetsModules().getInMemoryModules()).with(new AbstractModule() { @Override protected void configure() { // Need the distributed metadata store. bind(MetadataStore.class).to(DefaultMetadataStore.class); } }), new LocalLocationModule(), new TransactionInMemoryModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new NamespaceAdminTestModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getMasterModule() ); txManager = injector.getInstance(TransactionManager.class); txManager.startAndWait(); storage = injector.getInstance(DatasetMetadataStorage.class); }
new ProgramRunnerRuntimeModule().getDistributedModules(), new ServiceStoreModules().getDistributedModules(), new SystemDatasetRuntimeModule().getDistributedModules(), new KafkaClientModule(), new NamespaceStoreModule().getDistributedModules(),
@BeforeClass public static void setupDefaultStore() { injector = Guice.createInjector( new ConfigModule(), Modules.override( new DataSetsModules().getInMemoryModules()).with(new AbstractModule() { @Override protected void configure() { // Need the distributed metadata store. bind(MetadataStore.class).to(StorageProviderMetadataStore.class); bind(MetadataStorage.class).to(DatasetMetadataStorage.class).in(Scopes.SINGLETON); } }), new LocalLocationModule(), new TransactionInMemoryModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new NamespaceAdminTestModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getMasterModule(), new AuditModule().getInMemoryModules() ); txManager = injector.getInstance(TransactionManager.class); txManager.startAndWait(); AbstractMetadataStoreTest.commonSetup(); }
@BeforeClass public static void setupDefaultStore() { injector = Guice.createInjector( new ConfigModule(), Modules.override( new DataSetsModules().getInMemoryModules()).with(new AbstractModule() { @Override protected void configure() { // Need the distributed metadata store. bind(MetadataStore.class).to(DefaultMetadataStore.class); } }), new LocalLocationModule(), new TransactionInMemoryModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new NamespaceAdminTestModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getMasterModule(), new AuditModule().getInMemoryModules() ); txManager = injector.getInstance(TransactionManager.class); txManager.startAndWait(); AbstractMetadataStoreTest.commonSetup(); }