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 18:17:56 -04:00
committed by Ben McIlwain
parent a7256f5edd
commit 5d80f124ca
377 changed files with 2297 additions and 2373 deletions
@@ -57,7 +57,7 @@ public class PollMessageExternalKeyConverterTest {
FakeClock clock = new FakeClock(DateTime.parse("2007-07-07T01:01:01Z"));
@Before
public void setUp() throws Exception {
public void setUp() {
inject.setStaticField(Ofy.class, "clock", clock);
createTld("foobar");
historyEntry = persistResource(new HistoryEntry.Builder()
@@ -129,7 +129,7 @@ public class PollMessageExternalKeyConverterTest {
}
@Test
public void testFailure_invalidEppResourceTypeId() throws Exception {
public void testFailure_invalidEppResourceTypeId() {
// Populate the testdata correctly as for 1-2-FOOBAR-4-5 so we know that the only thing that
// is wrong here is the EppResourceTypeId.
testSuccess_domain();
@@ -139,14 +139,14 @@ public class PollMessageExternalKeyConverterTest {
}
@Test
public void testFailure_tooFewComponentParts() throws Exception {
public void testFailure_tooFewComponentParts() {
assertThrows(
PollMessageExternalKeyParseException.class,
() -> parsePollMessageExternalId("1-3-EXAMPLE"));
}
@Test
public void testFailure_tooManyComponentParts() throws Exception {
public void testFailure_tooManyComponentParts() {
assertThrows(
PollMessageExternalKeyParseException.class,
() -> parsePollMessageExternalId("1-3-EXAMPLE-4-5-2007-2009"));
@@ -154,7 +154,7 @@ public class PollMessageExternalKeyConverterTest {
@Test
public void testFailure_nonNumericIds() throws Exception {
public void testFailure_nonNumericIds() {
assertThrows(
PollMessageExternalKeyParseException.class,
() -> parsePollMessageExternalId("A-B-FOOBAR-D-E-F"));