use of org.apache.qpid.disttest.message.CreateMessageProviderCommand in project qpid-broker-j by apache.
the class MessageProviderConfigTest method testCreateCommandsForMessageProvider.
@Test
public void testCreateCommandsForMessageProvider() {
Map<String, PropertyValue> messageProperties = new HashMap<String, PropertyValue>();
messageProperties.put("test", new SimplePropertyValue("testValue"));
MessageProviderConfig config = new MessageProviderConfig("test", messageProperties);
CreateMessageProviderCommand command = config.createCommand();
assertNotNull("Command should not be null", command);
assertNotNull("Unexpected name", command.getProviderName());
assertEquals("Unexpected properties", messageProperties, command.getMessageProperties());
}
use of org.apache.qpid.disttest.message.CreateMessageProviderCommand in project qpid-broker-j by apache.
the class MessageProviderConfig method createCommand.
public CreateMessageProviderCommand createCommand() {
CreateMessageProviderCommand command = new CreateMessageProviderCommand();
command.setProviderName(_name);
command.setMessageProperties(_messageProperties);
return command;
}
use of org.apache.qpid.disttest.message.CreateMessageProviderCommand in project qpid-broker-j by apache.
the class ClientCommandVisitorTest method testCreateMessageProvider.
@Test
public void testCreateMessageProvider() throws Exception {
final CreateMessageProviderCommand command = new CreateMessageProviderCommand();
command.setProviderName("test");
_visitor.visit(command);
verify(_delegate).createMessageProvider(command);
}
Aggregations