addTask(taskReset, ResultCode.SUCCESS, null);
waitTaskState(taskReset, TaskState.COMPLETED_SUCCESSFULLY, null);
// Broker 2 and 3 should receive 1 change status message to order them
// to enter the bad gen id status
ChangeStatusMsg csMsg = (ChangeStatusMsg)waitForSpecificMsg(broker2,
ChangeStatusMsg.class.getName());
if (csMsg.getRequestedStatus() != ServerStatus.BAD_GEN_ID_STATUS)
{
fail("Broker 2 connection is expected to receive 1 ChangeStatusMsg" +
" to enter the bad gen id status"
+ csMsg);
}
csMsg = (ChangeStatusMsg)waitForSpecificMsg(broker3,
ChangeStatusMsg.class.getName());
if (csMsg.getRequestedStatus() != ServerStatus.BAD_GEN_ID_STATUS)
{
fail("Broker 2 connection is expected to receive 1 ChangeStatusMsg" +
" to enter the bad gen id status"
+ csMsg);
}