mirror of
https://github.com/google/nomulus.git
synced 2025-07-21 02:06:00 +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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue