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

@ -76,7 +76,7 @@ public class PublishInvoicesActionTest {
}
@Test
public void testJobDone_enqueuesCopyAction_emailsResults() throws Exception {
public void testJobDone_enqueuesCopyAction_emailsResults() {
expectedJob.setCurrentState("JOB_STATE_DONE");
uploadAction.run();
assertThat(response.getStatus()).isEqualTo(SC_OK);

View file

@ -18,7 +18,6 @@ import static com.google.common.truth.Truth.assertThat;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import java.io.IOException;
import org.joda.time.YearMonth;
import org.junit.Test;
import org.junit.runner.RunWith;
@ -36,7 +35,7 @@ public class ActivityReportingQueryBuilderTest {
}
@Test
public void testAggregateQueryMatch() throws IOException {
public void testAggregateQueryMatch() {
ActivityReportingQueryBuilder queryBuilder = getQueryBuilder();
assertThat(queryBuilder.getReportQuery())
.isEqualTo(
@ -45,7 +44,7 @@ public class ActivityReportingQueryBuilderTest {
}
@Test
public void testIntermediaryQueryMatch() throws IOException {
public void testIntermediaryQueryMatch() {
ImmutableList<String> expectedQueryNames =
ImmutableList.of(
ActivityReportingQueryBuilder.REGISTRAR_OPERATING_STATUS,

View file

@ -60,7 +60,7 @@ public class IcannReportingStagingActionTest {
when(stager.stageReports(ReportType.TRANSACTIONS)).thenReturn(ImmutableList.of("c", "d"));
}
private static void assertUploadTaskEnqueued(String subDir) throws Exception {
private static void assertUploadTaskEnqueued(String subDir) {
TaskMatcher matcher =
new TaskMatcher()
.url("/_dr/task/icannReportingUpload")

View file

@ -18,7 +18,6 @@ import static com.google.common.truth.Truth.assertThat;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import java.io.IOException;
import org.joda.time.YearMonth;
import org.junit.Test;
import org.junit.runner.RunWith;
@ -36,7 +35,7 @@ public class TransactionsReportingQueryBuilderTest {
}
@Test
public void testAggregateQueryMatch() throws IOException {
public void testAggregateQueryMatch() {
TransactionsReportingQueryBuilder queryBuilder = getQueryBuilder();
assertThat(queryBuilder.getReportQuery())
.isEqualTo(
@ -45,7 +44,7 @@ public class TransactionsReportingQueryBuilderTest {
}
@Test
public void testIntermediaryQueryMatch() throws IOException {
public void testIntermediaryQueryMatch() {
ImmutableList<String> expectedQueryNames =
ImmutableList.of(
TransactionsReportingQueryBuilder.TRANSACTIONS_REPORT_AGGREGATION,