diff --git a/javatests/google/registry/reporting/IcannReportingStagingActionTest.java b/javatests/google/registry/reporting/IcannReportingStagingActionTest.java index 545a60791..00fdbef65 100644 --- a/javatests/google/registry/reporting/IcannReportingStagingActionTest.java +++ b/javatests/google/registry/reporting/IcannReportingStagingActionTest.java @@ -77,13 +77,13 @@ public class IcannReportingStagingActionTest { @Test public void testRunSuccess() throws Exception { - when(bigquery.query(any(), any())).thenReturn(fakeFuture()); + when(bigquery.query(any(String.class), any(DestinationTable.class))).thenReturn(fakeFuture()); DestinationTable.Builder tableBuilder = new DestinationTable.Builder() .datasetId("testdataset") .type(TableType.TABLE) .name("tablename") .overwrite(true); - when(bigquery.buildDestinationTable(any())).thenReturn(tableBuilder); + when(bigquery.buildDestinationTable(any(String.class))).thenReturn(tableBuilder); ImmutableTable reportTable = new ImmutableTable.Builder() @@ -94,7 +94,7 @@ public class IcannReportingStagingActionTest { .put(2, new TableFieldSchema().setName("fooField"), "56") .put(2, new TableFieldSchema().setName("barField"), "78") .build(); - when(bigquery.queryToLocalTableSync(any())).thenReturn(reportTable); + when(bigquery.queryToLocalTableSync(any(String.class))).thenReturn(reportTable); IcannReportingStagingAction action = createAction(); action.run(); diff --git a/javatests/google/registry/reporting/IcannReportingUploadActionTest.java b/javatests/google/registry/reporting/IcannReportingUploadActionTest.java index e0f128a8f..b2a4ce9a8 100644 --- a/javatests/google/registry/reporting/IcannReportingUploadActionTest.java +++ b/javatests/google/registry/reporting/IcannReportingUploadActionTest.java @@ -172,7 +172,7 @@ public class IcannReportingUploadActionTest { public void testSuccess_CreateBucketname() throws Exception{ assertThat( IcannReportingUploadAction - .createReportingBucketName("gs://my-reporting", Optional.absent(), "2017-05")) + .createReportingBucketName("gs://my-reporting", Optional.absent(), "2017-05")) .isEqualTo("gs://my-reporting/icann/monthly/2017-05"); assertThat( IcannReportingUploadAction