public void testMinWaitIntervalConfigurationParameter() throws Exception {
  System.setProperty(StackProperties.FIRST_CTRAN_RETRANS_AFTER,"50");
  System.setProperty(StackProperties.PROPAGATE_RECEIVED_RETRANSMISSIONS,"true");
  stunStack.addRequestListener(serverAddress,requestCollector);
  stunStack.sendRequest(bindingRequest,serverAddress,clientAddress,responseCollector);
  requestCollector.waitForRequest();
  Vector<?> reqs=requestCollector.getRequestsForTransaction(bindingRequest.getTransactionID());
  assertTrue("A retransmissions of the request was sent too early",reqs.size() < 2);
  Thread.sleep(110);
  reqs=requestCollector.getRequestsForTransaction(bindingRequest.getTransactionID());
  assertEquals("A retransmissions of the request was not sent",2,reqs.size());
}

public void testMinWaitIntervalConfigurationParameter ( ) throws Exception { System . setProperty ( StackProperties . FIRST_CTRAN_RETRANS_AFTER , "50" ) ; System . setProperty ( StackProperties . PROPAGATE_RECEIVED_RETRANSMISSIONS , "true" ) ; stunStack . addRequestListener ( serverAddress , requestCollector ) ; stunStack . sendRequest ( bindingRequest , serverAddress , clientAddress , responseCollector ) ; requestCollector . waitForRequest ( ) ; Vector < ? > reqs = requestCollector . getRequestsForTransaction ( bindingRequest . getTransactionID ( ) ) ; assertTrue ( "A retransmissions of the request was sent too early" , reqs . size ( ) < 2 ) ; Thread . sleep ( 110 ) ; reqs = requestCollector . getRequestsForTransaction ( bindingRequest . getTransactionID ( ) ) ; assertEquals ( "A retransmissions of the request was not sent" , 2 , reqs . size ( ) ) ; }
tests whether the properties for configuring the minimum transaction wait interval is working properly .
