Skip to content

Commit

Permalink
[Upd] Rename test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodionnv authored and blcham committed Oct 25, 2023
1 parent 0f879f6 commit 0f570d2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Expand Up @@ -11,7 +11,6 @@
import cz.cvut.spipes.util.StreamResourceUtils;
import org.apache.jena.rdf.model.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
Expand Down Expand Up @@ -77,7 +76,7 @@ void executeWithSimpleTransformationXls() throws URISyntaxException, IOException

ExecutionContext outputContext = module.executeSelf();

Model expectedModel = ModelFactory.createDefaultModel().read(getFilePath("countries-model-output-xls.ttl").toString());
Model expectedModel = ModelFactory.createDefaultModel().read(getFilePath("countries-xls-model-output.ttl").toString());

assertIsomorphic(outputContext.getDefaultModel(),expectedModel);
}
Expand All @@ -87,14 +86,14 @@ void executeWithSimpleTransformationMergedXls() throws URISyntaxException, IOExc
module.setSourceResource(
StreamResourceUtils.getStreamResource(
"http://test-file",
getFilePath("merged.xls"))
getFilePath("merged-cells.xls"))
);
module.setSourceResourceFormat(ResourceFormat.EXCEL);
module.setProcessSpecificSheetInXLSFile(1);

ExecutionContext outputContext = module.executeSelf();

Model expectedModel = ModelFactory.createDefaultModel().read(getFilePath("merged-xls-model-output.ttl").toString());
Model expectedModel = ModelFactory.createDefaultModel().read(getFilePath("merged-cells-model-output.ttl").toString());

assertIsomorphic(outputContext.getDefaultModel(),expectedModel);
}
Expand All @@ -117,7 +116,7 @@ void executeWithDuplicateColumnsThrowsResourceNotUniqueException()
throws URISyntaxException, IOException {
module.setSourceResource(StreamResourceUtils.getStreamResource(
"http://test-file-2",
getFilePath("duplicate_column_countries.tsv"))
getFilePath("duplicate-column-countries.tsv"))
);

ResourceNotUniqueException exception = assertThrows(
Expand Down
Binary file not shown.

0 comments on commit 0f570d2

Please sign in to comment.