Search in sources :

Example 1 with JsonVirtualHostNode

use of org.apache.qpid.server.virtualhostnode.JsonVirtualHostNode in project qpid-broker-j by apache.

the class JsonFileConfigStoreConfigurationTest method createVirtualHostNode.

@Override
protected VirtualHostNode createVirtualHostNode(String storeLocation, ConfiguredObjectFactory factory) {
    final JsonVirtualHostNode parent = BrokerTestHelper.mockWithSystemPrincipal(JsonVirtualHostNode.class, mock(Principal.class));
    when(parent.getStorePath()).thenReturn(storeLocation);
    when(parent.getName()).thenReturn("testName");
    when(parent.getObjectFactory()).thenReturn(factory);
    when(parent.getModel()).thenReturn(factory.getModel());
    return parent;
}
Also used : JsonVirtualHostNode(org.apache.qpid.server.virtualhostnode.JsonVirtualHostNode) Principal(java.security.Principal)

Aggregations

Principal (java.security.Principal)1 JsonVirtualHostNode (org.apache.qpid.server.virtualhostnode.JsonVirtualHostNode)1