Skip to content

Commit

Permalink
[Upd] Remove redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
rodionnv committed Sep 19, 2023
1 parent 5283670 commit b4cbe96
Showing 1 changed file with 0 additions and 29 deletions.
Expand Up @@ -10,8 +10,6 @@
import cz.cvut.spipes.test.JenaTestUtils;
import cz.cvut.spipes.util.StreamResourceUtils;
import org.apache.jena.rdf.model.*;
import org.apache.jena.riot.RDFDataMgr;
import org.apache.jena.riot.RDFFormat;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
Expand Down Expand Up @@ -53,33 +51,6 @@ void setUp() {
module.setInputContext(ExecutionContextFactory.createEmptyContext());
}

@Test
@Disabled
void executeWithConfiguration() throws URISyntaxException, IOException {

ExecutionContext inputContext = ExecutionContextFactory.createContext(ModelFactory.createDefaultModel());

Model model = ModelFactory.createDefaultModel();
Resource root = model.createResource();
Property P_SOURCE_RESOURCE_FORMAT = ResourceFactory.createProperty("http://onto.fel.cvut.cz/ontologies/lib/module/tabular/source-resource-format");
Property P_DATE_PREFIX = ResourceFactory.createProperty("http://onto.fel.cvut.cz/ontologies/lib/module/tabular/data-prefix");
model.add(root, P_SOURCE_RESOURCE_FORMAT,"text/tab-separated-values");
model.add(root, P_DATE_PREFIX,DATA_PREFIX);

module.setConfigurationResource(root);

module.setInputContext(inputContext);

module.setSourceResource(
StreamResourceUtils.getStreamResource(
"http://test-file",
getFilePath("countries.tsv"))
);

ExecutionContext outputContext = module.execute();
RDFDataMgr.write(System.err,outputContext.getDefaultModel(), RDFFormat.TURTLE);
}

@Test
void executeWithSimpleTransformation() throws URISyntaxException, IOException {
module.setSourceResource(
Expand Down

0 comments on commit b4cbe96

Please sign in to comment.