int nExpectedEvnts,
int expectedTransition,
ServiceRegistration[] serviceRegs)
throws Exception
{
ServiceEvent evnt = null;
if (eventVector.size() != nExpectedEvnts) {
throw new TestException("# of Events Received ("+
eventVector.size()+
") != # of Events Expected ("+
nExpectedEvnts+")");
} else {
ServiceID evntSrvcID;
ServiceID expdSrvcID;
ServiceID handbackSrvcID;
for(int i=0; i<eventVector.size(); i++) {
evnt = (ServiceEvent)eventVector.elementAt(i);
if (evnt == null) {
throw new TestException
("null Event returned from Vector at element "+i);
} else {
if (evnt.getTransition() != expectedTransition) {
dumpEventIDs(eventVector, serviceRegs);
throw new TestException("Unexpected Transition returned ("+
evnt.getTransition()+")");
} else {
evntSrvcID = evnt.getServiceID();
expdSrvcID = serviceRegs[i].getServiceID();
if ( !(evntSrvcID.equals(expdSrvcID)) ) {
throw new TestException("Service ID Received ("+
evntSrvcID+
") != Service ID Expected ("+
expdSrvcID+")");
} else {
handbackSrvcID =
(ServiceID)(evnt.getRegistrationObject().get());
if ( !(handbackSrvcID.equals(expdSrvcID)) ) {
throw new TestException
("Handback Service ID ("+
handbackSrvcID+