Search in sources :

Example 1 with AbstractTestPackage

use of org.apache.jena.rdf.model.test.AbstractTestPackage in project jena by apache.

the class TestPackage method suite.

public static TestSuite suite() {
    TestSuite result = new TestSuite();
    GraphModelFactory gmf = new GraphModelFactory() {

        @Override
        Graph getGraph() {
            return new Intersection(Factory.createGraphMem(), Factory.createGraphMem());
        }
    };
    AbstractTestPackage atp = new AbstractTestPackage("Intersection", gmf) {
    };
    for (int i = 0; i < atp.testCount(); i++) {
        result.addTest(atp.testAt(i));
    }
    gmf = new GraphModelFactory() {

        @Override
        Graph getGraph() {
            return new Difference(Factory.createGraphMem(), Factory.createGraphMem());
        }
    };
    atp = new AbstractTestPackage("Difference", gmf) {
    };
    for (int i = 0; i < atp.testCount(); i++) {
        result.addTest(atp.testAt(i));
    }
    gmf = new GraphModelFactory() {

        @Override
        Graph getGraph() {
            return new Union(Factory.createGraphMem(), Factory.createGraphMem());
        }
    };
    atp = new AbstractTestPackage("Union", gmf) {
    };
    for (int i = 0; i < atp.testCount(); i++) {
        result.addTest(atp.testAt(i));
    }
    /* */
    result.addTest(TestDelta.suite());
    result.addTest(TestUnion.suite());
    result.addTest(TestDisjointUnion.suite());
    result.addTest(TestDifference.suite());
    result.addTest(TestIntersection.suite());
    result.addTestSuite(TestUnionStatistics.class);
    result.addTest(TestMultiUnion.suite());
    /* */
    result.addTest(TestPolyadicPrefixMapping.suite());
    return result;
}
Also used : Graph(org.apache.jena.graph.Graph) AbstractTestPackage(org.apache.jena.rdf.model.test.AbstractTestPackage)

Aggregations

Graph (org.apache.jena.graph.Graph)1 AbstractTestPackage (org.apache.jena.rdf.model.test.AbstractTestPackage)1