mirror of
https://github.com/google/nomulus
synced 2026-09-05 23:57:01 +00:00
Use method references when possible
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=179586059
This commit is contained in:
@@ -736,7 +736,7 @@ public class UpdateTldCommandTest extends CommandTestCase<UpdateTldCommand> {
|
||||
|
||||
@Test
|
||||
public void testFailure_noTldName() throws Exception {
|
||||
ParameterException thrown = expectThrows(ParameterException.class, () -> runCommandForced());
|
||||
ParameterException thrown = expectThrows(ParameterException.class, this::runCommandForced);
|
||||
assertThat(thrown)
|
||||
.hasMessageThat()
|
||||
.contains("Main parameters are required (\"Names of the TLDs\")");
|
||||
|
||||
Reference in New Issue
Block a user