use of org.apache.jena.assembler.assemblers.LocationMapperAssembler in project jena by apache.
the class TestLocationMapperAssembler method testCreatesWithCorrectContent.
public void testCreatesWithCorrectContent() {
// TODO should really have some mroe of these
Resource root = resourceInModel("r rdf:type ja:LocationMapper; r lm:mapping _m; _m lm:name 'alpha'; _m lm:altName 'beta'");
Assembler a = new LocationMapperAssembler();
Object x = a.open(root);
assertInstanceOf(LocationMapper.class, x);
assertEqualMaps(new LocationMapper(root.getModel()), (LocationMapper) x);
}
use of org.apache.jena.assembler.assemblers.LocationMapperAssembler in project jena by apache.
the class TestLocationMapperAssembler method testCreatesLocationMapper.
public void testCreatesLocationMapper() {
Resource root = resourceInModel("r rdf:type ja:LocationMapper");
Assembler a = new LocationMapperAssembler();
Object x = a.open(root);
assertInstanceOf(LocationMapper.class, x);
}
Aggregations