forked from I2P_Developers/i2p.i2p
merge of '3c30547c23e641e3cc7a7927d956997c0187aa5c'
and 'd0f6b1e4566b9690b60fa0fb686aadc3ad629a31'
This commit is contained in:
@ -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 RouterContext _context;
|
||||||
private Log _log;
|
private Log _log;
|
||||||
private UDPEndpoint _endpoints[];
|
private UDPEndpoint _endpoints[];
|
||||||
private boolean _beginTest;
|
private boolean _beginTest;
|
||||||
private List _sentNotReceived;
|
private List _sentNotReceived;
|
||||||
|
|
||||||
public UDPEndpointTest(RouterContext ctx) {
|
public UDPEndpointTestStandalone(RouterContext ctx) {
|
||||||
_context = ctx;
|
_context = ctx;
|
||||||
_log = ctx.logManager().getLog(UDPEndpointTest.class);
|
_log = ctx.logManager().getLog(UDPEndpointTestStandalone.class);
|
||||||
_sentNotReceived = Collections.synchronizedList(new ArrayList(1000));
|
_sentNotReceived = Collections.synchronizedList(new ArrayList(1000));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,7 +133,7 @@ public class UDPEndpointTest {
|
|||||||
Properties props = new Properties();
|
Properties props = new Properties();
|
||||||
props.setProperty("stat.logFile", "udpEndpointTest.stats");
|
props.setProperty("stat.logFile", "udpEndpointTest.stats");
|
||||||
props.setProperty("stat.logFilters", "*");
|
props.setProperty("stat.logFilters", "*");
|
||||||
UDPEndpointTest test = new UDPEndpointTest(new RouterContext(null, props));
|
UDPEndpointTestStandalone test = new UDPEndpointTestStandalone(new RouterContext(null, props));
|
||||||
test.runTest(2);
|
test.runTest(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user