Пример #1
0
 @Test(dataProvider = "createTimer")
 public void test11(TimeScheduler timer) throws Exception {
   try {
     NakReceiverWindow win = new NakReceiverWindow(sender, cmd, 0, timer);
     win.add(1, new Message());
     win.add(2, new Message());
     win.add(3, new Message());
     win.add(4, new Message());
     while ((win.remove()) != null) ;
     win.destroy();
     check(win, 0, 0, 0);
   } finally {
     timer.stop();
   }
 }
Пример #2
0
 void reset() {
   if (received_msgs != null) received_msgs.destroy();
   received_bytes = 0;
   last_highest = -1;
   num_stable_msgs = 0;
 }