use of org.apache.qpid.server.store.TestMemoryMessageStore in project qpid-broker-j by apache.
the class ReferenceCountingTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
_store = new TestMemoryMessageStore();
}
use of org.apache.qpid.server.store.TestMemoryMessageStore in project qpid-broker-j by apache.
the class VirtualHostPropertiesNodeTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
VirtualHost vhost = mock(VirtualHost.class);
MessageStore messageStore = new TestMemoryMessageStore();
when(vhost.getMessageStore()).thenReturn(messageStore);
_virtualHostPropertiesNode = new VirtualHostPropertiesNode(vhost);
}
use of org.apache.qpid.server.store.TestMemoryMessageStore in project qpid-broker-j by apache.
the class TrustStoreMessageSourceTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
VirtualHost vhost = mock(VirtualHost.class);
MessageStore messageStore = new TestMemoryMessageStore();
TrustStore trustStore = mock(TrustStore.class);
Certificate certificate = mock(Certificate.class);
_certificates = new Certificate[] { certificate };
when(vhost.getMessageStore()).thenReturn(messageStore);
when(trustStore.getState()).thenReturn(State.ACTIVE);
when(trustStore.getCertificates()).thenReturn(_certificates);
when(certificate.getEncoded()).thenReturn("my certificate".getBytes());
_trustStoreMessageSource = new TrustStoreMessageSource(trustStore, vhost);
}
Aggregations