FixedEventHeader fixedHeader = new FixedEventHeader();
fixedHeader.event_name = "TEST";
fixedHeader.event_type = new EventType("TESTING", "TESTING");
EventHeader header = new EventHeader(fixedHeader, new Property[0]);
StructuredPushReceiver _receiver = new StructuredPushReceiver(setup.getClientOrb(), testSize);
StructuredPushSender _sender = new StructuredPushSender(setup.getClientOrb());
_receiver.setTimeOut(testSize * 100);
_sender.connect(objectUnderTest_, false);
_receiver.connect(objectUnderTest_, false);
_receiver.start();
for (int x = 0; x < events.length; ++x)
{
Any any = setup.getClientOrb().create_any();
any.insert_long(x);
events[x] = new StructuredEvent(header, new Property[0], any);
}
_sender.pushEvents(events);
_receiver.join();
assertTrue(_receiver.toString(), _receiver.isEventHandled());
}