mirror of
https://github.com/google/nomulus
synced 2026-09-19 06:32:00 +00:00
Use method references when possible
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=179586059
This commit is contained in:
@@ -82,7 +82,7 @@ public class GetLrpTokenCommandTest extends CommandTestCase<GetLrpTokenCommand>
|
||||
@Test
|
||||
public void testFailure_noArgs() throws Exception {
|
||||
IllegalArgumentException thrown =
|
||||
expectThrows(IllegalArgumentException.class, () -> runCommand());
|
||||
expectThrows(IllegalArgumentException.class, this::runCommand);
|
||||
assertThat(thrown)
|
||||
.hasMessageThat()
|
||||
.contains("Exactly one of either token or assignee must be specified.");
|
||||
|
||||
Reference in New Issue
Block a user