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());
}
Aggregations