mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@792591 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5c15b52e51
commit
a72f26f0df
|
@ -960,7 +960,7 @@ public class BrokerService implements Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Service[] getServices() {
|
public Service[] getServices() {
|
||||||
return (Service[]) services.toArray();
|
return (Service[]) services.toArray(new Service[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1741,6 +1741,10 @@ public class BrokerTest extends BrokerTestSupport {
|
||||||
connection.request(createAck(consumerInfo, m3, 1, MessageAck.DELIVERED_ACK_TYPE));
|
connection.request(createAck(consumerInfo, m3, 1, MessageAck.DELIVERED_ACK_TYPE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGetServices() throws Exception {
|
||||||
|
assertTrue(broker.getServices().length != 0);
|
||||||
|
}
|
||||||
|
|
||||||
public static Test suite() {
|
public static Test suite() {
|
||||||
return suite(BrokerTest.class);
|
return suite(BrokerTest.class);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue