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

@ -70,7 +70,7 @@ public class RetrierTest {
}
@Test
public void testRetryableException() throws Exception {
public void testRetryableException() {
CountingException thrown =
assertThrows(
CountingException.class,
@ -79,7 +79,7 @@ public class RetrierTest {
}
@Test
public void testUnretryableException() throws Exception {
public void testUnretryableException() {
CountingException thrown =
assertThrows(
CountingException.class,
@ -88,13 +88,13 @@ public class RetrierTest {
}
@Test
public void testRetrySucceeded() throws Exception {
public void testRetrySucceeded() {
assertThat(retrier.callWithRetry(new CountingThrower(2), CountingException.class))
.isEqualTo(2);
}
@Test
public void testRetryFailed_withReporter() throws Exception {
public void testRetryFailed_withReporter() {
CountingException thrown =
assertThrows(
CountingException.class,
@ -111,7 +111,7 @@ public class RetrierTest {
}
@Test
public void testRetrySucceeded_withReporter() throws Exception {
public void testRetrySucceeded_withReporter() {
TestReporter reporter = new TestReporter();
assertThat(retrier.callWithRetry(new CountingThrower(2), reporter, CountingException.class))
.isEqualTo(2);
@ -119,7 +119,7 @@ public class RetrierTest {
}
@Test
public void testFirstTrySucceeded_withReporter() throws Exception {
public void testFirstTrySucceeded_withReporter() {
TestReporter reporter = new TestReporter();
assertThat(retrier.callWithRetry(new CountingThrower(0), reporter, CountingException.class))
.isEqualTo(0);