mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Clean up streams in SetNumInstancesCommand
Also using Service instead of serviceId String - because it helps readability. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228952033
This commit is contained in:
parent
773af1da35
commit
fd8a18b72e
2 changed files with 68 additions and 73 deletions
|
@ -60,7 +60,7 @@ public class SetNumInstancesCommandTest extends CommandTestCase<SetNumInstancesC
|
|||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
() -> runCommand("--services=", "--versions=version", "--num_instances=5"));
|
||||
assertThat(thrown).hasMessageThat().contains("Invalid service(s): []");
|
||||
assertThat(thrown).hasMessageThat().contains("Invalid service ''");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -71,7 +71,7 @@ public class SetNumInstancesCommandTest extends CommandTestCase<SetNumInstancesC
|
|||
() ->
|
||||
runCommand(
|
||||
"--services=INVALID,DEFAULT", "--versions=version", "--num_instances=5"));
|
||||
assertThat(thrown).hasMessageThat().contains("Invalid service(s): [INVALID]");
|
||||
assertThat(thrown).hasMessageThat().contains("Invalid service 'INVALID'");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue