use of org.apache.qpid.disttest.message.CreateProducerCommand in project qpid-broker-j by apache.
the class ClientCommandVisitorTest method testCreateProducer.
@Test
public void testCreateProducer() throws Exception {
final CreateProducerCommand command = new CreateProducerCommand();
_visitor.visit(command);
verify(_delegate).createProducer(command);
}
use of org.apache.qpid.disttest.message.CreateProducerCommand in project qpid-broker-j by apache.
the class ProducerConfigTest method testMessageSizeDefaultOverride.
@Test
public void testMessageSizeDefaultOverride() {
final long overriddenMessageSize = 4096;
setTestSystemProperty(ProducerConfig.MESSAGE_SIZE_OVERRIDE_SYSTEM_PROPERTY, String.valueOf(overriddenMessageSize));
CreateProducerCommand producer2 = new ProducerConfig().createCommand("session1");
assertEquals("Unexpected message size", overriddenMessageSize, (long) producer2.getMessageSize());
}
Aggregations