* New buildTest and prepTest targets

* Fix UDPEndpoint usage in unit tests:
  - Restore receive()
  - Handle null UDPTransport
* Fix UDPEndpointTestStandalone compilation
This commit is contained in:
zzz
2013-05-16 17:57:33 +00:00
parent febc0a5237
commit fcdf837f33
5 changed files with 47 additions and 6 deletions

View File

@ -38,7 +38,11 @@ public class UDPEndpointTestStandalone {
_log.debug("Building " + i);
UDPEndpoint endpoint = new UDPEndpoint(_context, null, base + i, null);
_endpoints[i] = endpoint;
endpoint.startup();
try {
endpoint.startup();
} catch (SocketException se) {
throw new RuntimeException(se);
}
I2PThread read = new I2PThread(new TestRead(endpoint), "Test read " + i);
I2PThread write = new I2PThread(new TestWrite(endpoint), "Test write " + i);
//read.setDaemon(true);