use of io.cdap.cdap.internal.app.namespace.DefaultNamespaceAdmin in project cdap by caskdata.
the class SqlDefaultStoreTest method beforeClass.
@BeforeClass
public static void beforeClass() throws Exception {
CConfiguration cConf = CConfiguration.create();
pg = PostgresInstantiator.createAndStart(cConf, TEMP_FOLDER.newFolder());
Injector injector = AppFabricTestHelper.getInjector(cConf);
StoreDefinition.createAllTables(injector.getInstance(StructuredTableAdmin.class));
TransactionRunner transactionRunner = injector.getInstance(TransactionRunner.class);
store = new DefaultStore(transactionRunner);
nsStore = new DefaultNamespaceStore(transactionRunner);
nsAdmin = new DefaultNamespaceAdmin(nsStore, store, injector.getInstance(DatasetFramework.class), injector.getInstance(MetricsCollectionService.class), injector.getProvider(NamespaceResourceDeleter.class), injector.getProvider(StorageProviderNamespaceAdmin.class), injector.getInstance(CConfiguration.class), injector.getInstance(Impersonator.class), injector.getInstance(AccessEnforcer.class), injector.getInstance(AuthenticationContext.class));
}
Aggregations