use of org.apache.jackrabbit.spi.commons.conversion.DummyNamespaceResolver in project jackrabbit by apache.
the class NodeDefinitionTemplateImplTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
NamePathResolver resolver = new DefaultNamePathResolver(new DummyNamespaceResolver());
tmpl = new NodeDefinitionTemplateImpl(resolver);
}
use of org.apache.jackrabbit.spi.commons.conversion.DummyNamespaceResolver in project jackrabbit by apache.
the class ParserTest method setUp.
protected void setUp() throws Exception {
super.setUp();
NamePathResolver resolver = new DefaultNamePathResolver(new DummyNamespaceResolver());
QueryObjectModelFactoryImpl factory = new QOMF(resolver);
ValueFactory vf = new ValueFactoryQImpl(QValueFactoryImpl.getInstance(), resolver);
parser = new Parser(factory, vf);
}
use of org.apache.jackrabbit.spi.commons.conversion.DummyNamespaceResolver in project jackrabbit by apache.
the class ValueFormatTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
idResolver = new IdentifierResolver() {
public Path getPath(String identifier) throws MalformedPathException {
throw new UnsupportedOperationException();
}
public void checkFormat(String identifier) throws MalformedPathException {
// nop
}
};
NameResolver nResolver = new ParsingNameResolver(NameFactoryImpl.getInstance(), new DummyNamespaceResolver());
PathResolver pResolver = new ParsingPathResolver(PathFactoryImpl.getInstance(), nResolver, idResolver);
resolver = new DefaultNamePathResolver(nResolver, pResolver);
qvFactory = QValueFactoryImpl.getInstance();
vFactory = new ValueFactoryQImpl(qvFactory, resolver);
}
use of org.apache.jackrabbit.spi.commons.conversion.DummyNamespaceResolver in project jackrabbit by apache.
the class PropertyDefinitionTemplateImplTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
NamePathResolver resolver = new DefaultNamePathResolver(new DummyNamespaceResolver());
tmpl = new PropertyDefinitionTemplateImpl(resolver);
}
Aggregations