Search in sources :

Example 6 with AncestorAttributeResolver

use of org.apache.qpid.server.model.AncestorAttributeResolver in project qpid-broker-j by apache.

the class AncestorAttributeResolverTest method testBadAncestorRef.

public void testBadAncestorRef() throws Exception {
    _ancestorAttributeResolver = new AncestorAttributeResolver(_car);
    String actual = _ancestorAttributeResolver.resolve("ancestor:name", null);
    assertNull(actual);
}
Also used : AncestorAttributeResolver(org.apache.qpid.server.model.AncestorAttributeResolver)

Example 7 with AncestorAttributeResolver

use of org.apache.qpid.server.model.AncestorAttributeResolver in project qpid-broker-j by apache.

the class AncestorAttributeResolverTest method testUnrecognisedAttributeName.

public void testUnrecognisedAttributeName() throws Exception {
    _ancestorAttributeResolver = new AncestorAttributeResolver(_car);
    String actual = _ancestorAttributeResolver.resolve("ancestor:notacategoty:nonexisting", null);
    assertNull(actual);
}
Also used : AncestorAttributeResolver(org.apache.qpid.server.model.AncestorAttributeResolver)

Aggregations

AncestorAttributeResolver (org.apache.qpid.server.model.AncestorAttributeResolver)7 HashMap (java.util.HashMap)2 ConfiguredObject (org.apache.qpid.server.model.ConfiguredObject)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1