Skip to content

Test with "testbulkAllJoinQuerying" in name fail #2

@GreenfishK

Description

@GreenfishK

When I build Jena_TDB with "mvn install" 15 tests fail:

Results :

Tests in error:
testbulkAllJoinQuerying_SO(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_CBTB)
testbulkAllJoinQuerying_SS(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_CBTB)
testbulkAllJoinQuerying_SS_variable(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_CBTB)
testbulkAllJoinQuerying_SO(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_Hybrid)
testbulkAllJoinQuerying_SS(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_Hybrid)
testbulkAllJoinQuerying_SS_variable(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_Hybrid)
testbulkAllJoinQuerying_SO(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_TB)
testbulkAllJoinQuerying_SS(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_TB)
testbulkAllJoinQuerying_SS_variable(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_TB)
testbulkAllJoinQuerying_SO(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_IC)
testbulkAllJoinQuerying_SS(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_IC)
testbulkAllJoinQuerying_SS_variable(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_IC)
testbulkAllJoinQuerying_SO(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_CB)
testbulkAllJoinQuerying_SS(org.ai.wu.ac.at.tdbQuery.TestJenaTDBArchive_CB)

I figured out that this is because some test while are missing. There should be some test queries with "testQueryDynamic_join" in the file name, such as testQueryDynamic_join_PO.txt. These .txt files, however, do not exist.

Example test case:

@Test
	public void testbulkAllJoinQuerying_SS() throws InterruptedException, ExecutionException, FileNotFoundException, IOException {

		URL queryurl = this.getClass().getResource(FileSystems.getDefault().getSeparator() + "testIC/testQueryDynamic_join_PO.txt");
		ArrayList<Map<Integer, ArrayList<String>>> solution = jenaArchive.bulkAllJoinQuerying(queryurl.getFile(), "PO","PO","ss");

		ArrayList<String> version0 = new ArrayList<String>();
		version0.add("<http://example.org/uri1>");
		ArrayList<String> solutionversion = solution.get(0).get(3);
//		System.out.println("solutionversion:"+solutionversion);
		assertTrue(version0.containsAll(solutionversion) && solutionversion.containsAll(version0));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions