Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hmottestad committed Jan 15, 2024
1 parent d6e9f19 commit 74f46d4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,6 @@ public long getLastTriplePosition() {
return lastPosition;
}

@Override
public String getIndexName() {
return idx.getOrder().toString();
}

@Override
public boolean isLastTriplePositionBoundToOrder() {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,8 @@
public class EndpointMultIndexSPARQL11QueryComplianceTest extends SPARQL11QueryComplianceTest {
private static final Logger logger = LoggerFactory.getLogger(EndpointSPARQL11QueryComplianceTest.class);

public EndpointMultIndexSPARQL11QueryComplianceTest(String displayName, String testURI, String name,
String queryFileURL, String resultFileURL, Dataset dataset, boolean ordered, boolean laxCardinality)
throws ParserException, NotFoundException, IOException {
super(displayName, testURI, name, queryFileURL, resultFileURL, null, ordered, laxCardinality);
setUpHDT(dataset);
public EndpointMultIndexSPARQL11QueryComplianceTest() {
super();
List<String> testToIgnore = new ArrayList<>();
// @todo these tests are failing and should not, they are skipped so
// that we can be sure that we see when
Expand Down Expand Up @@ -72,6 +69,16 @@ public EndpointMultIndexSPARQL11QueryComplianceTest(String displayName, String t
File nativeStore;
File hdtStore;

@Override
protected void testParameterListener(String displayName, String testURI, String name, String queryFileURL,
String resultFileURL, Dataset dataset, boolean ordered, boolean laxCardinality) {
try {
setUpHDT(dataset);
} catch (IOException | ParserException | NotFoundException e) {
throw new RuntimeException(e);
}
}

@Override
protected Repository newRepository() throws Exception {
nativeStore = tempDir.newFolder();
Expand Down Expand Up @@ -116,11 +123,6 @@ public HDT loadIndex() throws IOException {
return new SailRepository(endpoint);
}

@Override
public void setUp() throws Exception {
super.setUp();
}

HDT hdt;

private void setUpHDT(Dataset dataset) throws IOException, ParserException, NotFoundException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@

public class EndpointMultIndexSPARQL11UpdateComplianceTest extends SPARQL11UpdateComplianceTest {

public EndpointMultIndexSPARQL11UpdateComplianceTest(String displayName, String testURI, String name,
String requestFile, IRI defaultGraphURI, Map<String, IRI> inputNamedGraphs, IRI resultDefaultGraphURI,
Map<String, IRI> resultNamedGraphs) {
super(displayName, testURI, name, requestFile, defaultGraphURI, inputNamedGraphs, resultDefaultGraphURI,
resultNamedGraphs);
public EndpointMultIndexSPARQL11UpdateComplianceTest() {
super();
List<String> testToIgnore = new ArrayList<>();
// @todo these tests are failing and should not, they are skipped so
// that we can be sure that we see when
Expand Down Expand Up @@ -95,8 +92,4 @@ public HDT loadIndex() throws IOException {
// NativeStore(tempDir.newFolder(), "spoc")));
}

@Override
public void setUp() throws Exception {
super.setUp();
}
}

0 comments on commit 74f46d4

Please sign in to comment.