Search in sources :

Example 1 with ExpandingAssemblerGroup

use of org.apache.jena.assembler.assemblers.AssemblerGroup.ExpandingAssemblerGroup in project jena by apache.

the class TestAssemblerGroup method testClassesLoadedBeforeAddingTypes.

public void testClassesLoadedBeforeAddingTypes() {
    String className = ImplementsSPOO.class.getName();
    Resource root = resourceInModel("_root rdf:type ja:MemoryModel; _x ja:loadClass '" + className + "'");
    ExpandingAssemblerGroup g = new AssemblerGroup.ExpandingAssemblerGroup();
    g.implementWith(resource("ja:MemoryModel"), mockAssembler);
    g.open(root);
    assertEquals(resourceSet("SPOO ja:MemoryModel"), g.implementsTypes());
}
Also used : ExpandingAssemblerGroup(org.apache.jena.assembler.assemblers.AssemblerGroup.ExpandingAssemblerGroup) Resource(org.apache.jena.rdf.model.Resource)

Aggregations

ExpandingAssemblerGroup (org.apache.jena.assembler.assemblers.AssemblerGroup.ExpandingAssemblerGroup)1 Resource (org.apache.jena.rdf.model.Resource)1