|
|
|
@ -145,8 +145,8 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
|
EthNetworkConfig.jsonConfig(MAINNET), |
|
|
|
|
EthNetworkConfig.MAINNET_NETWORK_ID, |
|
|
|
|
MAINNET_BOOTSTRAP_NODES)); |
|
|
|
|
verify(mockRunnerBuilder).discoveryHost(eq("127.0.0.1")); |
|
|
|
|
verify(mockRunnerBuilder).discoveryPort(eq(30303)); |
|
|
|
|
verify(mockRunnerBuilder).p2pAdvertisedHost(eq("127.0.0.1")); |
|
|
|
|
verify(mockRunnerBuilder).p2pListenPort(eq(30303)); |
|
|
|
|
verify(mockRunnerBuilder).maxPeers(eq(25)); |
|
|
|
|
verify(mockRunnerBuilder).jsonRpcConfiguration(eq(defaultJsonRpcConfiguration)); |
|
|
|
|
verify(mockRunnerBuilder).webSocketConfiguration(eq(defaultWebSocketConfiguration)); |
|
|
|
@ -280,8 +280,8 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
|
|
|
|
|
|
verify(mockRunnerBuilder).discovery(eq(false)); |
|
|
|
|
verify(mockRunnerBuilder).ethNetworkConfig(ethNetworkConfigArgumentCaptor.capture()); |
|
|
|
|
verify(mockRunnerBuilder).discoveryHost(eq("1.2.3.4")); |
|
|
|
|
verify(mockRunnerBuilder).discoveryPort(eq(1234)); |
|
|
|
|
verify(mockRunnerBuilder).p2pAdvertisedHost(eq("1.2.3.4")); |
|
|
|
|
verify(mockRunnerBuilder).p2pListenPort(eq(1234)); |
|
|
|
|
verify(mockRunnerBuilder).maxPeers(eq(42)); |
|
|
|
|
verify(mockRunnerBuilder).jsonRpcConfiguration(eq(jsonRpcConfiguration)); |
|
|
|
|
verify(mockRunnerBuilder).webSocketConfiguration(eq(webSocketConfiguration)); |
|
|
|
@ -597,8 +597,8 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
|
EthNetworkConfig.jsonConfig(MAINNET), |
|
|
|
|
EthNetworkConfig.MAINNET_NETWORK_ID, |
|
|
|
|
MAINNET_BOOTSTRAP_NODES)); |
|
|
|
|
verify(mockRunnerBuilder).discoveryHost(eq("127.0.0.1")); |
|
|
|
|
verify(mockRunnerBuilder).discoveryPort(eq(30303)); |
|
|
|
|
verify(mockRunnerBuilder).p2pAdvertisedHost(eq("127.0.0.1")); |
|
|
|
|
verify(mockRunnerBuilder).p2pListenPort(eq(30303)); |
|
|
|
|
verify(mockRunnerBuilder).maxPeers(eq(25)); |
|
|
|
|
verify(mockRunnerBuilder).jsonRpcConfiguration(eq(jsonRpcConfiguration)); |
|
|
|
|
verify(mockRunnerBuilder).webSocketConfiguration(eq(webSocketConfiguration)); |
|
|
|
@ -981,8 +981,8 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
|
final int port = 1234; |
|
|
|
|
parseCommand("--p2p-host", host, "--p2p-port", String.valueOf(port)); |
|
|
|
|
|
|
|
|
|
verify(mockRunnerBuilder).discoveryHost(stringArgumentCaptor.capture()); |
|
|
|
|
verify(mockRunnerBuilder).discoveryPort(intArgumentCaptor.capture()); |
|
|
|
|
verify(mockRunnerBuilder).p2pAdvertisedHost(stringArgumentCaptor.capture()); |
|
|
|
|
verify(mockRunnerBuilder).p2pListenPort(intArgumentCaptor.capture()); |
|
|
|
|
verify(mockRunnerBuilder).build(); |
|
|
|
|
|
|
|
|
|
assertThat(stringArgumentCaptor.getValue()).isEqualTo(host); |
|
|
|
@ -998,7 +998,7 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
|
final String host = "localhost"; |
|
|
|
|
parseCommand("--p2p-host", host); |
|
|
|
|
|
|
|
|
|
verify(mockRunnerBuilder).discoveryHost(stringArgumentCaptor.capture()); |
|
|
|
|
verify(mockRunnerBuilder).p2pAdvertisedHost(stringArgumentCaptor.capture()); |
|
|
|
|
verify(mockRunnerBuilder).build(); |
|
|
|
|
|
|
|
|
|
assertThat(stringArgumentCaptor.getValue()).isEqualTo(host); |
|
|
|
@ -1013,7 +1013,7 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
|
final String host = "2600:DB8::8545"; |
|
|
|
|
parseCommand("--p2p-host", host); |
|
|
|
|
|
|
|
|
|
verify(mockRunnerBuilder).discoveryHost(stringArgumentCaptor.capture()); |
|
|
|
|
verify(mockRunnerBuilder).p2pAdvertisedHost(stringArgumentCaptor.capture()); |
|
|
|
|
verify(mockRunnerBuilder).build(); |
|
|
|
|
|
|
|
|
|
assertThat(stringArgumentCaptor.getValue()).isEqualTo(host); |
|
|
|
|