Search in sources :

Example 1 with TestMemoryMessageStore

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();
}
Also used : TestMemoryMessageStore(org.apache.qpid.server.store.TestMemoryMessageStore)

Example 2 with 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);
}
Also used : MessageStore(org.apache.qpid.server.store.MessageStore) TestMemoryMessageStore(org.apache.qpid.server.store.TestMemoryMessageStore) VirtualHost(org.apache.qpid.server.model.VirtualHost) TestMemoryMessageStore(org.apache.qpid.server.store.TestMemoryMessageStore)

Example 3 with TestMemoryMessageStore

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);
}
Also used : MessageStore(org.apache.qpid.server.store.MessageStore) TestMemoryMessageStore(org.apache.qpid.server.store.TestMemoryMessageStore) VirtualHost(org.apache.qpid.server.model.VirtualHost) TrustStore(org.apache.qpid.server.model.TrustStore) TestMemoryMessageStore(org.apache.qpid.server.store.TestMemoryMessageStore) Certificate(java.security.cert.Certificate)

Aggregations

TestMemoryMessageStore (org.apache.qpid.server.store.TestMemoryMessageStore)3 VirtualHost (org.apache.qpid.server.model.VirtualHost)2 MessageStore (org.apache.qpid.server.store.MessageStore)2 Certificate (java.security.cert.Certificate)1 TrustStore (org.apache.qpid.server.model.TrustStore)1