public void testGroupMembers() throws Exception
{
final int brokerPortNumber = getBrokerPortNumbers().iterator().next();
ManagedBDBHAMessageStore storeBean = getStoreBeanForNodeAtBrokerPort(brokerPortNumber);
final TabularData groupMembers = storeBean.getAllNodesInGroup();
assertNotNull(groupMembers);
final int numberOfDataRows = groupMembers.size();
assertEquals("Unexpected number of data rows", NUMBER_OF_NODES ,numberOfDataRows);
for(int bdbPortNumber : _clusterCreator.getBdbPortNumbers())
{
final String nodeName = _clusterCreator.getNodeNameForNodeAt(bdbPortNumber);
final String nodeHostPort = _clusterCreator.getNodeHostPortForNodeAt(bdbPortNumber);
CompositeData row = groupMembers.get(new Object[] {nodeName});
assertNotNull("Table does not contain row for node name " + nodeName, row);
assertEquals(nodeHostPort, row.get(BDBHAMessageStore.GRP_MEM_COL_NODE_HOST_PORT));
}
}