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;
}
Aggregations