Skip to content

projekt-opal/test-cases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OPAL JUnit test cases

This component provides test cases. The single tests are separated into sets. Take a view at the available test cases.

Test case sources

Request for additional test case

If you need an additional dataset, please create a new issue.

Examples

import org.dice_research.opal.test_cases.OpalTestCases;
import org.dice_research.opal.test_cases.TestCase;
// ...

// Print all available test-sets.
SortedSet<String> testSets = OpalTestCases.listTestSets();
System.out.println("Sets: " + testSets);

// Print all available test-cases for a test-set
SortedSet<String> testCases = OpalTestCases.listTestCases(testSets.first());
System.out.println("Test-cases for " + testSets.first() + ": " + testCases);
		
// Get a test-case. Print the model-size and dataset-URI.
TestCase testCase = OpalTestCases.getTestCase(testSets.first(), testCases.first());
System.out.println("Test case model: " + testCase.getModel().size());
System.out.println("Test case dataset-URI: " + testCase.getDatasetUri());

Usage with Apache Maven

Add the following lines to your pom.xml configuration file:

<dependencies>
	<dependency>
		<groupId>org.dice-research.opal</groupId>
		<artifactId>test-cases</artifactId>
		<version>[1,2)</version>
		<scope>test</scope>
	</dependency>
</dependencies>

<repositories>
	<repository>
		<id>maven.aksw.internal</id>
		<name>AKSW Repository</name>
		<url>http://maven.aksw.org/archiva/repository/internal</url>
	</repository>
	<repository>
		<id>maven.aksw.snapshots</id>
		<name>AKSW Snapshot Repository</name>
		<url>http://maven.aksw.org/archiva/repository/snapshots</url>
	</repository>
</repositories>

Available versions are listed at maven.aksw.org.

Credits

Data Science Group (DICE) at Paderborn University

This work has been supported by the German Federal Ministry of Transport and Digital Infrastructure (BMVI) in the project Open Data Portal Germany (OPAL) (funding code 19F2028A).

Releases

No releases published

Packages

No packages published

Languages