Remove more unnecessary "throws" declarations

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=201243722
This commit is contained in:
mcilwain 2018-06-19 14:40:42 -07:00 committed by Ben McIlwain
parent 47322b7fcd
commit ad73f3d167
61 changed files with 318 additions and 331 deletions

View file

@ -109,7 +109,7 @@ public class CreateReservedListCommandTest extends
}
@Test
public void testNamingRules_tldThatDoesNotExist_failsWithoutOverride() throws Exception {
public void testNamingRules_tldThatDoesNotExist_failsWithoutOverride() {
runNameTestExpectedFailure("footld_reserved-list", "TLD footld does not exist");
}
@ -119,7 +119,7 @@ public class CreateReservedListCommandTest extends
}
@Test
public void testNamingRules_underscoreIsMissing_failsWithoutOverride() throws Exception {
public void testNamingRules_underscoreIsMissing_failsWithoutOverride() {
runNameTestExpectedFailure("random-reserved-list", INVALID_FORMAT_ERROR_MESSAGE);
}
@ -129,7 +129,7 @@ public class CreateReservedListCommandTest extends
}
@Test
public void testNamingRules_secondHalfOfNameIsMissing_failsWithoutOverride() throws Exception {
public void testNamingRules_secondHalfOfNameIsMissing_failsWithoutOverride() {
runNameTestExpectedFailure("soy_", INVALID_FORMAT_ERROR_MESSAGE);
}
@ -139,7 +139,7 @@ public class CreateReservedListCommandTest extends
}
@Test
public void testNamingRules_onlyTldIsSpecifiedAsName_failsWithoutOverride() throws Exception {
public void testNamingRules_onlyTldIsSpecifiedAsName_failsWithoutOverride() {
runNameTestExpectedFailure("soy", INVALID_FORMAT_ERROR_MESSAGE);
}
@ -149,7 +149,7 @@ public class CreateReservedListCommandTest extends
}
@Test
public void testNamingRules_commonAsListName_failsWithoutOverride() throws Exception {
public void testNamingRules_commonAsListName_failsWithoutOverride() {
runNameTestExpectedFailure("invalidtld_common", "TLD invalidtld does not exist");
}
@ -159,7 +159,7 @@ public class CreateReservedListCommandTest extends
}
@Test
public void testNamingRules_too_many_underscores_failsWithoutOverride() throws Exception {
public void testNamingRules_too_many_underscores_failsWithoutOverride() {
runNameTestExpectedFailure("soy_buffalo_buffalo_buffalo", INVALID_FORMAT_ERROR_MESSAGE);
}
@ -169,7 +169,7 @@ public class CreateReservedListCommandTest extends
}
@Test
public void testNamingRules_withWeirdCharacters_failsWithoutOverride() throws Exception {
public void testNamingRules_withWeirdCharacters_failsWithoutOverride() {
runNameTestExpectedFailure("soy_$oy", INVALID_FORMAT_ERROR_MESSAGE);
}

View file

@ -514,7 +514,7 @@ public class CreateTldCommandTest extends CommandTestCase<CreateTldCommand> {
}
@Test
public void testFailure_setReservedListFromOtherTld() throws Exception {
public void testFailure_setReservedListFromOtherTld() {
runFailureReservedListsTest(
"tld_banned",
IllegalArgumentException.class,
@ -527,7 +527,7 @@ public class CreateTldCommandTest extends CommandTestCase<CreateTldCommand> {
}
@Test
public void testFailure_setCommonAndReservedListFromOtherTld() throws Exception {
public void testFailure_setCommonAndReservedListFromOtherTld() {
runFailureReservedListsTest(
"common_abuse,tld_banned",
IllegalArgumentException.class,
@ -547,7 +547,7 @@ public class CreateTldCommandTest extends CommandTestCase<CreateTldCommand> {
}
@Test
public void testFailure_setMultipleReservedListsFromOtherTld() throws Exception {
public void testFailure_setMultipleReservedListsFromOtherTld() {
runFailureReservedListsTest(
"tld_banned,soy_expurgated",
IllegalArgumentException.class,
@ -560,7 +560,7 @@ public class CreateTldCommandTest extends CommandTestCase<CreateTldCommand> {
}
@Test
public void testFailure_setNonExistentReservedLists() throws Exception {
public void testFailure_setNonExistentReservedLists() {
runFailureReservedListsTest(
"xn--q9jyb4c_asdf,common_asdsdgh",
IllegalArgumentException.class,

View file

@ -940,7 +940,7 @@ public class UpdateTldCommandTest extends CommandTestCase<UpdateTldCommand> {
}
@Test
public void testFailure_setReservedListFromOtherTld() throws Exception {
public void testFailure_setReservedListFromOtherTld() {
runFailureReservedListsTest("tld_banned",
IllegalArgumentException.class,
"The reserved list(s) tld_banned cannot be applied to the tld xn--q9jyb4c");
@ -952,7 +952,7 @@ public class UpdateTldCommandTest extends CommandTestCase<UpdateTldCommand> {
}
@Test
public void testFailure_setCommonAndReservedListFromOtherTld() throws Exception {
public void testFailure_setCommonAndReservedListFromOtherTld() {
runFailureReservedListsTest("common_abuse,tld_banned",
IllegalArgumentException.class,
"The reserved list(s) tld_banned cannot be applied to the tld xn--q9jyb4c");
@ -971,7 +971,7 @@ public class UpdateTldCommandTest extends CommandTestCase<UpdateTldCommand> {
}
@Test
public void testFailure_setMultipleReservedListsFromOtherTld() throws Exception {
public void testFailure_setMultipleReservedListsFromOtherTld() {
runFailureReservedListsTest("tld_banned,soy_expurgated",
IllegalArgumentException.class,
"The reserved list(s) tld_banned, soy_expurgated cannot be applied to the tld xn--q9jyb4c");