forked from I2P_Developers/i2p.i2p
Test: Fix broken junit test build
This commit is contained in:
@ -162,7 +162,7 @@ public class BuildMessageTestStandalone extends TestCase {
|
|||||||
_privKeys[i] = (PrivateKey)kp[1];
|
_privKeys[i] = (PrivateKey)kp[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
TunnelCreatorConfig cfg = new TunnelCreatorConfig(null, _peers.length, false);
|
TunnelCreatorConfig cfg = new TCConfig(null, _peers.length, false);
|
||||||
long now = ctx.clock().now();
|
long now = ctx.clock().now();
|
||||||
// peers[] is ordered endpoint first, but cfg.getPeer() is ordered gateway first
|
// peers[] is ordered endpoint first, but cfg.getPeer() is ordered gateway first
|
||||||
for (int i = 0; i < _peers.length; i++) {
|
for (int i = 0; i < _peers.length; i++) {
|
||||||
|
@ -57,7 +57,7 @@ public class OutboundTest extends TestCase{
|
|||||||
_context.random().nextBytes(tunnelIds[i]);
|
_context.random().nextBytes(tunnelIds[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
TunnelCreatorConfig config = new TunnelCreatorConfig(_context, numHops, false);
|
TunnelCreatorConfig config = new TCConfig(_context, numHops, false);
|
||||||
for (int i = 0; i < numHops; i++) {
|
for (int i = 0; i < numHops; i++) {
|
||||||
config.setPeer(i, peers[i]);
|
config.setPeer(i, peers[i]);
|
||||||
HopConfig cfg = config.getConfig(i);
|
HopConfig cfg = config.getConfig(i);
|
||||||
|
@ -42,7 +42,7 @@ public abstract class RouterITBase {
|
|||||||
_context.random().nextBytes(tunnelIds[i]);
|
_context.random().nextBytes(tunnelIds[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
TunnelCreatorConfig config = new TunnelCreatorConfig(_context, numHops, false);
|
TunnelCreatorConfig config = new TCConfig(_context, numHops, false);
|
||||||
for (int i = 0; i < numHops; i++) {
|
for (int i = 0; i < numHops; i++) {
|
||||||
config.setPeer(i, peers[i]);
|
config.setPeer(i, peers[i]);
|
||||||
HopConfig cfg = config.getConfig(i);
|
HopConfig cfg = config.getConfig(i);
|
||||||
|
14
router/java/test/junit/net/i2p/router/tunnel/TCConfig.java
Normal file
14
router/java/test/junit/net/i2p/router/tunnel/TCConfig.java
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package net.i2p.router.tunnel;
|
||||||
|
|
||||||
|
import net.i2p.router.RouterContext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Since TunnelCreatorConfig is now abstract
|
||||||
|
* @since 0.9.42
|
||||||
|
*/
|
||||||
|
public class TCConfig extends TunnelCreatorConfig {
|
||||||
|
|
||||||
|
public TCConfig(RouterContext ctx, int length, boolean isInbound) {
|
||||||
|
super(ctx, length, isInbound);
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user