Search in sources :

Example 11 with CreateProducerCommand

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);
}
Also used : CreateProducerCommand(org.apache.qpid.disttest.message.CreateProducerCommand) Test(org.junit.Test)

Example 12 with CreateProducerCommand

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());
}
Also used : CreateProducerCommand(org.apache.qpid.disttest.message.CreateProducerCommand) Test(org.junit.Test)

Aggregations

CreateProducerCommand (org.apache.qpid.disttest.message.CreateProducerCommand)12 Test (org.junit.Test)10 ArrayList (java.util.ArrayList)2 Message (javax.jms.Message)2 TextMessage (javax.jms.TextMessage)2 HashMap (java.util.HashMap)1 DistributedTestException (org.apache.qpid.disttest.DistributedTestException)1 ListPropertyValue (org.apache.qpid.disttest.client.property.ListPropertyValue)1 PropertyValue (org.apache.qpid.disttest.client.property.PropertyValue)1 SimplePropertyValue (org.apache.qpid.disttest.client.property.SimplePropertyValue)1 CommandForClient (org.apache.qpid.disttest.controller.CommandForClient)1 Command (org.apache.qpid.disttest.message.Command)1 CreateParticipantCommand (org.apache.qpid.disttest.message.CreateParticipantCommand)1 ProducerParticipantResult (org.apache.qpid.disttest.message.ProducerParticipantResult)1