@Test(expected=VirtualDatabaseException.class) public void testImportErrors() throws Exception { VDBRepository repo = new VDBRepository(); repo.setSystemStore(RealMetadataFactory.example1Cached().getMetadataStore()); repo.setSystemFunctionManager(RealMetadataFactory.SFM); MetadataStore metadataStore = RealMetadataFactory.exampleBQTCached().getMetadataStore(); VDBMetaData vdb = createVDBMetadata(metadataStore, "bqt"); repo.addVDB(vdb, metadataStore, null, null, new ConnectorManagerRepository()); vdb = createVDBMetadata(metadataStore, "bqt1"); VDBImportMetadata vdbImport = new VDBImportMetadata(); vdbImport.setName("foo"); vdb.getVDBImports().add(vdbImport); try { repo.addVDB(vdb, metadataStore, null, null, new ConnectorManagerRepository()); fail(); } catch (VirtualDatabaseException e) { } vdb = createVDBMetadata(metadataStore, "bqt1"); vdbImport.setName("bqt"); vdb.getVDBImports().add(vdbImport); repo.addVDB(vdb, metadataStore, null, null, new ConnectorManagerRepository()); }
private MetadataStore getMetadataStore() { return this.store; }
CompositeVDB { private MetadataStore getMetadataStore() { return this.store; } }
CompositeVDB { private MetadataStore getMetadataStore() { return this.store; } CompositeVDB(VDBMetaData vdb, MetadataStore metadataStore,
            LinkedHashMap<String, VDBResources.Resource> visibilityMap, UDFMetaData udf, FunctionTree systemFunctions,
            ConnectorManagerRepository cmr, VDBRepository vdbRepository, MetadataStore... additionalStores); }
CompositeVDB { private MetadataStore getMetadataStore() { return this.store; } CompositeVDB(VDBMetaData vdb, MetadataStore metadataStore,
            LinkedHashMap<String, VDBResources.Resource> visibilityMap, UDFMetaData udf, FunctionTree systemFunctions,
            ConnectorManagerRepository cmr, VDBRepository vdbRepository, MetadataStore... additionalStores); VDBMetaData getVDB(); void metadataLoadFinished(boolean allowEnv); Collection<Future<?>> clearTasks(); void removeTask(Future<?> future); void addTask(Future<?> future); VDBKey getVDBKey(); }
CompositeVDB { private MetadataStore getMetadataStore() { return this.store; } CompositeVDB(VDBMetaData vdb, MetadataStore metadataStore,
            LinkedHashMap<String, VDBResources.Resource> visibilityMap, UDFMetaData udf, FunctionTree systemFunctions,
            ConnectorManagerRepository cmr, VDBRepository vdbRepository, MetadataStore... additionalStores); VDBMetaData getVDB(); void metadataLoadFinished(boolean allowEnv); Collection<Future<?>> clearTasks(); void removeTask(Future<?> future); void addTask(Future<?> future); VDBKey getVDBKey();  }