git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@792591 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-07-09 16:00:29 +00:00
parent 5c15b52e51
commit a72f26f0df
2 changed files with 5 additions and 1 deletions

View File

@ -960,7 +960,7 @@ public class BrokerService implements Service {
}
public Service[] getServices() {
return (Service[]) services.toArray();
return (Service[]) services.toArray(new Service[0]);
}
/**

View File

@ -1741,6 +1741,10 @@ public class BrokerTest extends BrokerTestSupport {
connection.request(createAck(consumerInfo, m3, 1, MessageAck.DELIVERED_ACK_TYPE));
}
public void testGetServices() throws Exception {
assertTrue(broker.getServices().length != 0);
}
public static Test suite() {
return suite(BrokerTest.class);
}