@Test public void testFunctionValidationError() throws Exception { VDBRepository repo = new VDBRepository(); repo.start(); repo.setSystemStore(RealMetadataFactory.example1Cached().getMetadataStore()); repo.setSystemFunctionManager(RealMetadataFactory.SFM); MetadataStore metadataStore = new MetadataStore(); RealMetadataFactory.createPhysicalModel("x", metadataStore); FunctionMethod method = MetadataFactory.createFunctionFromMethod("getProperty", System.class.getMethod("getProperty", String.class)); method.setInvocationClass("?"); method.setMethod(null); metadataStore.getSchema("x").addFunction(method); VDBMetaData vdb = createVDBMetadata(metadataStore, "bqt"); ConnectorManagerRepository cmr = new ConnectorManagerRepository(); cmr.addConnectorManager("x", new ConnectorManager("y", "z")); repo.addVDB(vdb, metadataStore, null, null, cmr); repo.finishDeployment(vdb.getName(), vdb.getVersion()); assertEquals(vdb.getStatus(), Status.FAILED); }
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();  }