Remove unnecessary "throws" declarations

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=201058582
This commit is contained in:
mcilwain 2018-06-18 14:25:42 -07:00 committed by Ben McIlwain
parent a7256f5edd
commit 5d80f124ca
377 changed files with 2297 additions and 2373 deletions

View file

@ -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);
}
}