Test: Fix broken junit test build

This commit is contained in:
zzz
2019-07-12 17:33:03 +00:00
parent 63e75ed307
commit 1be569db7a
4 changed files with 17 additions and 3 deletions

View File

@ -162,7 +162,7 @@ public class BuildMessageTestStandalone extends TestCase {
_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();
// peers[] is ordered endpoint first, but cfg.getPeer() is ordered gateway first
for (int i = 0; i < _peers.length; i++) {

View File

@ -57,7 +57,7 @@ public class OutboundTest extends TestCase{
_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++) {
config.setPeer(i, peers[i]);
HopConfig cfg = config.getConfig(i);

View File

@ -42,7 +42,7 @@ public abstract class RouterITBase {
_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++) {
config.setPeer(i, peers[i]);
HopConfig cfg = config.getConfig(i);

View 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);
}
}