DummyMessageEndpoint endpoint = new DummyMessageEndpoint(latch);
DummyMessageEndpointFactory endpointFactory = new DummyMessageEndpointFactory(endpoint, false);
qResourceAdapter.endpointActivation(endpointFactory, spec);
Binding binding = server.getPostOffice().getBinding(MDBQUEUEPREFIXEDSIMPLE);
assertEquals(((LocalQueueBinding)binding).getQueue().getConsumerCount(), 0);
qResourceAdapter.endpointDeactivation(endpointFactory, spec);
}
public void testSimpleMessageReceivedOnQueueWithSecuritySucceeds() throws Exception
{
server.getSecurityManager().addUser("testuser", "testpassword");