mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 17:07:15 +02:00
Remove unnecessary "throws" declarations
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201058582
This commit is contained in:
parent
a7256f5edd
commit
5d80f124ca
377 changed files with 2297 additions and 2373 deletions
|
@ -68,7 +68,7 @@ public class GetResourceByKeyCommandTest extends CommandTestCase<GetResourceByKe
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_domain_oneDoesNotExist() throws Exception {
|
||||
public void testFailure_domain_oneDoesNotExist() {
|
||||
persistActiveDomain("example.tld");
|
||||
NullPointerException thrown =
|
||||
assertThrows(
|
||||
|
@ -117,7 +117,7 @@ public class GetResourceByKeyCommandTest extends CommandTestCase<GetResourceByKe
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_contact_oneDoesNotExist() throws Exception {
|
||||
public void testFailure_contact_oneDoesNotExist() {
|
||||
persistActiveContact("sh8013");
|
||||
NullPointerException thrown =
|
||||
assertThrows(
|
||||
|
@ -166,7 +166,7 @@ public class GetResourceByKeyCommandTest extends CommandTestCase<GetResourceByKe
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_host_oneDoesNotExist() throws Exception {
|
||||
public void testFailure_host_oneDoesNotExist() {
|
||||
persistActiveHost("ns1.example.tld");
|
||||
NullPointerException thrown =
|
||||
assertThrows(
|
||||
|
@ -203,7 +203,7 @@ public class GetResourceByKeyCommandTest extends CommandTestCase<GetResourceByKe
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_keyDoesNotExist() throws Exception {
|
||||
public void testFailure_keyDoesNotExist() {
|
||||
NullPointerException thrown =
|
||||
assertThrows(
|
||||
NullPointerException.class,
|
||||
|
@ -214,7 +214,7 @@ public class GetResourceByKeyCommandTest extends CommandTestCase<GetResourceByKe
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_nonsenseKey() throws Exception {
|
||||
public void testFailure_nonsenseKey() {
|
||||
IllegalArgumentException thrown =
|
||||
assertThrows(
|
||||
IllegalArgumentException.class, () -> runCommand("agR0ZXN0chULEgpEb21haW5CYXN"));
|
||||
|
@ -222,7 +222,7 @@ public class GetResourceByKeyCommandTest extends CommandTestCase<GetResourceByKe
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_noParameters() throws Exception {
|
||||
public void testFailure_noParameters() {
|
||||
assertThrows(ParameterException.class, this::runCommand);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue