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

@ -102,7 +102,7 @@ public class BigqueryPollJobActionTest {
}
@Test
public void testSuccess_enqueuePollTask() throws Exception {
public void testSuccess_enqueuePollTask() {
new BigqueryPollJobEnqueuer(TASK_QUEUE_UTILS).enqueuePollTask(
new JobReference().setProjectId(PROJECT_ID).setJobId(JOB_ID));
assertTasksEnqueued(BigqueryPollJobAction.QUEUE, newPollJobTaskMatcher("GET"));

View file

@ -93,8 +93,7 @@ public class CheckSnapshotActionTest {
when(backupService.findByName("some_backup")).thenReturn(backupInfo);
}
private static void assertLoadTaskEnqueued(String id, String file, String kinds)
throws Exception {
private static void assertLoadTaskEnqueued(String id, String file, String kinds) {
assertTasksEnqueued(
"export-snapshot",
new TaskMatcher()
@ -106,7 +105,7 @@ public class CheckSnapshotActionTest {
}
@Test
public void testSuccess_enqueuePollTask() throws Exception {
public void testSuccess_enqueuePollTask() {
CheckSnapshotAction.enqueuePollTask(
"some_snapshot_name", ImmutableSet.of("one", "two", "three"));
assertTasksEnqueued(
@ -147,7 +146,7 @@ public class CheckSnapshotActionTest {
}
@Test
public void testPost_forCompleteBackup_enqueuesLoadTask() throws Exception {
public void testPost_forCompleteBackup_enqueuesLoadTask() {
action.run();
assertLoadTaskEnqueued(
@ -155,7 +154,7 @@ public class CheckSnapshotActionTest {
}
@Test
public void testPost_forCompleteAutoBackup_enqueuesLoadTask_usingBackupName() throws Exception {
public void testPost_forCompleteAutoBackup_enqueuesLoadTask_usingBackupName() {
action.snapshotName = "auto_snapshot_somestring";
when(backupService.findByName("auto_snapshot_somestring")).thenReturn(backupInfo);
@ -165,7 +164,7 @@ public class CheckSnapshotActionTest {
}
@Test
public void testPost_forCompleteBackup_withExtraKindsToLoad_enqueuesLoadTask() throws Exception {
public void testPost_forCompleteBackup_withExtraKindsToLoad_enqueuesLoadTask() {
action.kindsToLoadParam = "one,foo";
action.run();
@ -174,7 +173,7 @@ public class CheckSnapshotActionTest {
}
@Test
public void testPost_forCompleteBackup_withEmptyKindsToLoad_skipsLoadTask() throws Exception {
public void testPost_forCompleteBackup_withEmptyKindsToLoad_skipsLoadTask() {
action.kindsToLoadParam = "";
action.run();

View file

@ -78,7 +78,7 @@ public class DatastoreBackupServiceTest {
}
@Test
public void testSuccess_launchBackup() throws Exception {
public void testSuccess_launchBackup() {
backupService.launchNewBackup(
"export-snapshot", "backup1", "somebucket", ImmutableSet.of("foo", "bar"));
assertTasksEnqueued("export-snapshot",

View file

@ -53,7 +53,7 @@ public class ExportSnapshotActionTest {
}
@Test
public void testPost_launchesBackup_andEnqueuesPollTask() throws Exception {
public void testPost_launchesBackup_andEnqueuesPollTask() {
action.run();
verify(backupService)
.launchNewBackup(

View file

@ -96,7 +96,7 @@ public class LoadSnapshotActionTest {
}
@Test
public void testSuccess_enqueueLoadTask() throws Exception {
public void testSuccess_enqueueLoadTask() {
enqueueLoadSnapshotTask(
"id12345", "gs://bucket/snapshot.backup_info", ImmutableSet.of("one", "two", "three"));
assertTasksEnqueued(

View file

@ -84,7 +84,7 @@ public class UpdateSnapshotViewActionTest {
}
@Test
public void testSuccess_createViewUpdateTask() throws Exception {
public void testSuccess_createViewUpdateTask() {
getQueue(QUEUE).add(createViewUpdateTask("some_dataset", "12345_fookind", "fookind"));
assertTasksEnqueued(QUEUE,
new TaskMatcher()