|
|
@ -88,7 +88,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -131,7 +130,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
eq(true), |
|
|
|
eq(true), |
|
|
|
eq(MAINNET_BOOTSTRAP_NODES), |
|
|
|
eq(MAINNET_BOOTSTRAP_NODES), |
|
|
|
eq(1), |
|
|
|
|
|
|
|
eq("127.0.0.1"), |
|
|
|
eq("127.0.0.1"), |
|
|
|
eq(30303), |
|
|
|
eq(30303), |
|
|
|
eq(25), |
|
|
|
eq(25), |
|
|
@ -259,7 +257,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
eq(false), |
|
|
|
eq(false), |
|
|
|
stringListArgumentCaptor.capture(), |
|
|
|
stringListArgumentCaptor.capture(), |
|
|
|
eq(1), |
|
|
|
|
|
|
|
eq("1.2.3.4"), |
|
|
|
eq("1.2.3.4"), |
|
|
|
eq(1234), |
|
|
|
eq(1234), |
|
|
|
eq(42), |
|
|
|
eq(42), |
|
|
@ -313,7 +310,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
eq(true), |
|
|
|
eq(true), |
|
|
|
eq(MAINNET_BOOTSTRAP_NODES), |
|
|
|
eq(MAINNET_BOOTSTRAP_NODES), |
|
|
|
eq(1), |
|
|
|
|
|
|
|
eq("127.0.0.1"), |
|
|
|
eq("127.0.0.1"), |
|
|
|
eq(30303), |
|
|
|
eq(30303), |
|
|
|
eq(25), |
|
|
|
eq(25), |
|
|
@ -372,17 +368,7 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
|
|
|
|
|
|
|
|
verify(mockRunnerBuilder) |
|
|
|
verify(mockRunnerBuilder) |
|
|
|
.build( |
|
|
|
.build( |
|
|
|
any(), |
|
|
|
any(), any(), eq(false), any(), anyString(), anyInt(), anyInt(), any(), any(), any()); |
|
|
|
any(), |
|
|
|
|
|
|
|
eq(false), |
|
|
|
|
|
|
|
any(), |
|
|
|
|
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
|
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyInt(), |
|
|
|
|
|
|
|
any(), |
|
|
|
|
|
|
|
any(), |
|
|
|
|
|
|
|
any()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assertThat(commandOutput.toString()).isEmpty(); |
|
|
|
assertThat(commandOutput.toString()).isEmpty(); |
|
|
|
assertThat(commandErrorOutput.toString()).isEmpty(); |
|
|
|
assertThat(commandErrorOutput.toString()).isEmpty(); |
|
|
@ -408,7 +394,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
stringListArgumentCaptor.capture(), |
|
|
|
stringListArgumentCaptor.capture(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -435,7 +420,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
stringArgumentCaptor.capture(), |
|
|
|
stringArgumentCaptor.capture(), |
|
|
|
intArgumentCaptor.capture(), |
|
|
|
intArgumentCaptor.capture(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -462,7 +446,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
intArgumentCaptor.capture(), |
|
|
|
intArgumentCaptor.capture(), |
|
|
@ -509,7 +492,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -533,7 +515,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -557,7 +538,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -585,7 +565,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -611,7 +590,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -637,7 +615,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -663,7 +640,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -689,7 +665,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -761,7 +736,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -785,7 +759,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -809,7 +782,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -836,7 +808,6 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyBoolean(), |
|
|
|
anyBoolean(), |
|
|
|
any(), |
|
|
|
any(), |
|
|
|
anyInt(), |
|
|
|
|
|
|
|
anyString(), |
|
|
|
anyString(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
|
anyInt(), |
|
|
@ -855,6 +826,9 @@ public class PantheonCommandTest extends CommandTestAbstract { |
|
|
|
public void pantheonDoesNotStartInMiningModeIfCoinbaseNotSet() throws Exception { |
|
|
|
public void pantheonDoesNotStartInMiningModeIfCoinbaseNotSet() throws Exception { |
|
|
|
parseCommand("--miner-enabled"); |
|
|
|
parseCommand("--miner-enabled"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final ArgumentCaptor<MiningParameters> miningArg = |
|
|
|
|
|
|
|
ArgumentCaptor.forClass(MiningParameters.class); |
|
|
|
|
|
|
|
|
|
|
|
verifyZeroInteractions(mockControllerBuilder); |
|
|
|
verifyZeroInteractions(mockControllerBuilder); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|