}
public void verify(Object verifiable)
{
Collection channels = (Collection) verifiable;
Channel ch = app.getChannel();
assertFalse("Channel open", ch.isOpen());
assertFalse("Chnanel connected", ch.isConnected());
//if this channel had more than one member then verify that
//the other member does not have departed member in its view
if (viewBeforeClose.getMembers().size() > 1)
{
for (Iterator iter = channels.iterator(); iter.hasNext();)
{
FlushTestReceiver receiver = (FlushTestReceiver) iter.next();
Channel channel = receiver.getChannel();
boolean pairServiceFound = (receiver.isUsingMuxChannel() && muxId.equals(((MuxChannel)channel).getId()));
if(pairServiceFound || !receiver.isUsingMuxChannel())
{
assertTrue("Removed from view, address " + appAddress + " view is " + channel.getView(),
!channel.getView().getMembers().contains(appAddress));
}
}
}
}