edits to test names (#153)

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
pull/154/head
Sally MacFarlane 5 years ago committed by GitHub
parent 38462bb7db
commit 59049f190b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      besu/src/test/java/org/hyperledger/besu/cli/PasswordSubCommandTest.java
  2. 2
      besu/src/test/java/org/hyperledger/besu/cli/PublicKeySubCommandTest.java
  3. 2
      besu/src/test/java/org/hyperledger/besu/cli/rlp/RLPSubCommandTest.java
  4. 2
      besu/src/test/java/org/hyperledger/besu/cli/subcommands/blocks/BlocksSubCommandTest.java

@ -22,7 +22,7 @@ import picocli.CommandLine.Model.CommandSpec;
public class PasswordSubCommandTest extends CommandTestAbstract { public class PasswordSubCommandTest extends CommandTestAbstract {
@Test @Test
public void passwordSubCommandExistAnbHaveSubCommands() { public void passwordSubCommandExistsWithHashSubCommand() {
final CommandSpec spec = parseCommand().getSpec(); final CommandSpec spec = parseCommand().getSpec();
assertThat(spec.subcommands()).containsKeys("password"); assertThat(spec.subcommands()).containsKeys("password");
assertThat(spec.subcommands().get("password").getSubcommands()).containsKeys("hash"); assertThat(spec.subcommands().get("password").getSubcommands()).containsKeys("hash");
@ -39,7 +39,7 @@ public class PasswordSubCommandTest extends CommandTestAbstract {
} }
@Test @Test
public void passwordHashSubCommandExist() { public void passwordHashSubCommandExists() {
parseCommand("password", "hash"); parseCommand("password", "hash");
assertThat(commandOutput.toString()).isEmpty(); assertThat(commandOutput.toString()).isEmpty();

@ -79,7 +79,7 @@ public class PublicKeySubCommandTest extends CommandTestAbstract {
// public-key sub-command // public-key sub-command
@Test @Test
public void publicKeySubCommandExistAnbHaveSubCommands() { public void publicKeySubCommandExistsAndHasSubCommands() {
CommandSpec spec = parseCommand().getSpec(); CommandSpec spec = parseCommand().getSpec();
assertThat(spec.subcommands()).containsKeys(PUBLIC_KEY_SUBCOMMAND_NAME); assertThat(spec.subcommands()).containsKeys(PUBLIC_KEY_SUBCOMMAND_NAME);
assertThat(spec.subcommands().get(PUBLIC_KEY_SUBCOMMAND_NAME).getSubcommands()) assertThat(spec.subcommands().get(PUBLIC_KEY_SUBCOMMAND_NAME).getSubcommands())

@ -66,7 +66,7 @@ public class RLPSubCommandTest extends CommandTestAbstract {
// RLP sub-command // RLP sub-command
@Test @Test
public void rlpSubCommandExistAnbHaveSubCommands() { public void rlpSubCommandExistsAndHasSubCommands() {
final CommandSpec spec = parseCommand().getSpec(); final CommandSpec spec = parseCommand().getSpec();
assertThat(spec.subcommands()).containsKeys(RLP_SUBCOMMAND_NAME); assertThat(spec.subcommands()).containsKeys(RLP_SUBCOMMAND_NAME);
assertThat(spec.subcommands().get(RLP_SUBCOMMAND_NAME).getSubcommands()) assertThat(spec.subcommands().get(RLP_SUBCOMMAND_NAME).getSubcommands())

@ -103,7 +103,7 @@ public class BlocksSubCommandTest extends CommandTestAbstract {
// Block sub-command // Block sub-command
@Test @Test
public void blockSubCommandExistAnbHaveSubCommands() { public void blockSubCommandExistsAndHasSubCommands() {
CommandSpec spec = parseCommand().getSpec(); CommandSpec spec = parseCommand().getSpec();
assertThat(spec.subcommands()).containsKeys(BLOCK_SUBCOMMAND_NAME); assertThat(spec.subcommands()).containsKeys(BLOCK_SUBCOMMAND_NAME);
assertThat(spec.subcommands().get(BLOCK_SUBCOMMAND_NAME).getSubcommands()) assertThat(spec.subcommands().get(BLOCK_SUBCOMMAND_NAME).getSubcommands())

Loading…
Cancel
Save