mirror of
https://github.com/google/nomulus
synced 2026-08-27 19:37:07 +00:00
Remove unnecessary "throws" declarations
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201058582
This commit is contained in:
@@ -61,7 +61,7 @@ public class GetApplicationIdsCommandTest extends CommandTestCase<GetApplication
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_tldDoesNotExist() throws Exception {
|
||||
public void testFailure_tldDoesNotExist() {
|
||||
IllegalArgumentException thrown =
|
||||
assertThrows(IllegalArgumentException.class, () -> runCommand("example.foo"));
|
||||
assertThat(thrown).hasMessageThat().contains("Domain name is not under a recognized TLD");
|
||||
@@ -76,7 +76,7 @@ public class GetApplicationIdsCommandTest extends CommandTestCase<GetApplication
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_noDomainName() throws Exception {
|
||||
public void testFailure_noDomainName() {
|
||||
assertThrows(ParameterException.class, this::runCommand);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user