use of org.apache.activemq.command.ConnectionId in project activemq-artemis by apache.
the class ConnectionIdTest method populateObject.
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConnectionId info = (ConnectionId) object;
info.setValue("Value:1");
}
use of org.apache.activemq.command.ConnectionId in project activemq-artemis by apache.
the class ConnectionIdTest method createObject.
@Override
public Object createObject() throws Exception {
ConnectionId info = new ConnectionId();
populateObject(info);
return info;
}
use of org.apache.activemq.command.ConnectionId in project activemq-artemis by apache.
the class XBeanConfigTest method setUp.
@Override
protected void setUp() throws Exception {
System.setProperty("brokername", "testbroker");
brokerService = createBroker();
broker = brokerService.getBroker();
// started automatically
// brokerService.start();
context = new ConnectionContext();
context.setBroker(broker);
info = new ConnectionInfo();
info.setClientId("James");
info.setUserName("James");
info.setConnectionId(new ConnectionId("1234"));
try {
broker.addConnection(context, info);
} catch (Throwable e) {
e.printStackTrace();
fail(e.getMessage());
}
assertNotNull("No broker created!");
}
use of org.apache.activemq.command.ConnectionId in project activemq-artemis by apache.
the class ConnectionIdTest method createObject.
@Override
public Object createObject() throws Exception {
ConnectionId info = new ConnectionId();
populateObject(info);
return info;
}
use of org.apache.activemq.command.ConnectionId in project activemq-artemis by apache.
the class ConnectionIdTest method createObject.
@Override
public Object createObject() throws Exception {
ConnectionId info = new ConnectionId();
populateObject(info);
return info;
}
Aggregations