I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 88c2b3da authored by str4d's avatar str4d
Browse files

merge of '3c30547c23e641e3cc7a7927d956997c0187aa5c'

     and 'd0f6b1e4566b9690b60fa0fb686aadc3ad629a31'
parents 0bfd747c d1504033
No related branches found
No related tags found
No related merge requests found
......@@ -13,17 +13,20 @@ import net.i2p.util.Log;
/**
*
* Note: this is a standalone test, not a JUnit test.
* At some point someone may want to convert it to a JUnit test.
* --zab
*/
public class UDPEndpointTest {
public class UDPEndpointTestStandalone {
private RouterContext _context;
private Log _log;
private UDPEndpoint _endpoints[];
private boolean _beginTest;
private List _sentNotReceived;
public UDPEndpointTest(RouterContext ctx) {
public UDPEndpointTestStandalone(RouterContext ctx) {
_context = ctx;
_log = ctx.logManager().getLog(UDPEndpointTest.class);
_log = ctx.logManager().getLog(UDPEndpointTestStandalone.class);
_sentNotReceived = Collections.synchronizedList(new ArrayList(1000));
}
......@@ -130,7 +133,7 @@ public class UDPEndpointTest {
Properties props = new Properties();
props.setProperty("stat.logFile", "udpEndpointTest.stats");
props.setProperty("stat.logFilters", "*");
UDPEndpointTest test = new UDPEndpointTest(new RouterContext(null, props));
UDPEndpointTestStandalone test = new UDPEndpointTestStandalone(new RouterContext(null, props));
test.runTest(2);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment