use of org.apache.jena.assembler.assemblers.AssemblerBase in project jena by apache.
the class TestAssemblerGroup method testPassesSelfIn.
public void testPassesSelfIn() {
final AssemblerGroup group = AssemblerGroup.create();
final Object result = new Object();
Assembler fake = new AssemblerBase() {
@Override
public Object open(Assembler a, Resource root, Mode irrelevant) {
assertSame("nested call should pass in assembler group:", group, a);
return result;
}
};
group.implementWith(JA.Object, fake);
assertSame(result, group.open(resourceInModel("x rdf:type ja:Object")));
}
Aggregations