@@ -94,14 +94,14 @@ public void getCountOfNoOfRecordsTransferredToTargetBigQueryTable() throws IOExc
9494 }
9595
9696 @ Then ("Validate records transferred to target table is equal to number of records from source table " +
97- "with filter {string}" )
97+ "with filter {string}" )
9898 public void validateRecordsTransferredToTargetTableIsEqualToNumberOfRecordsFromSourceTableWithFilter (String filter )
99- throws IOException , InterruptedException {
99+ throws IOException , InterruptedException {
100100 String projectId = (PluginPropertyUtils .pluginProp ("projectId" ));
101101 String datasetName = (PluginPropertyUtils .pluginProp ("dataset" ));
102102 int countRecordsTarget = BigQueryClient .countBqQuery (TestSetupHooks .bqTargetTable );
103103 String selectQuery = "SELECT count(*) FROM `" + projectId + "." + datasetName + "." +
104- TestSetupHooks .bqTargetTable + "` WHERE " + PluginPropertyUtils .pluginProp (filter );
104+ TestSetupHooks .bqTargetTable + "` WHERE " + PluginPropertyUtils .pluginProp (filter );
105105 Optional <String > result = BigQueryClient .getSoleQueryResult (selectQuery );
106106 int count = result .map (Integer ::parseInt ).orElse (0 );
107107 BeforeActions .scenario .write ("Number of records transferred with respect to filter:" + count );
@@ -110,7 +110,7 @@ public void validateRecordsTransferredToTargetTableIsEqualToNumberOfRecordsFromS
110110
111111 @ Then ("Validate partition date in output partitioned table" )
112112 public void validatePartitionDateInOutputPartitionedTable ()
113- throws IOException , InterruptedException {
113+ throws IOException , InterruptedException {
114114 Optional <String > result = BigQueryClient
115115 .getSoleQueryResult ("SELECT distinct _PARTITIONDATE as pt FROM `" +
116116 (PluginPropertyUtils .pluginProp ("projectId" )) + "." +
@@ -233,10 +233,10 @@ public void verifyTheBigQueryValidationErrorMessageForInvalidProperty(String pro
233233 .errorProp (E2ETestConstants .ERROR_MSG_BQ_INCORRECT_CHUNKSIZE );
234234 } else if (property .equalsIgnoreCase ("bucket" )) {
235235 expectedErrorMessage = PluginPropertyUtils
236- .errorProp (E2ETestConstants .ERROR_MSG_BQ_INCORRECT_TEMPORARY_BUCKET );
236+ .errorProp (E2ETestConstants .ERROR_MSG_BQ_INCORRECT_TEMPORARY_BUCKET );
237237 } else if (property .equalsIgnoreCase ("table" )) {
238238 expectedErrorMessage = PluginPropertyUtils
239- .errorProp (E2ETestConstants .ERROR_MSG_INCORRECT_TABLE_NAME );
239+ .errorProp (E2ETestConstants .ERROR_MSG_INCORRECT_TABLE_NAME );
240240 } else {
241241 expectedErrorMessage = PluginPropertyUtils .errorProp (E2ETestConstants .ERROR_MSG_BQ_INCORRECT_PROPERTY ).
242242 replaceAll ("PROPERTY" , property .substring (0 , 1 ).toUpperCase () + property .substring (1 ));
@@ -260,5 +260,4 @@ public void validateRecordsTransferredToTargetTableIsEqualToNumberOfRecordsFromS
260260 BeforeActions .scenario .write ("Number of records transferred from source table to target table:" + count );
261261 Assert .assertEquals (count , countRecordsTarget );
262262 }
263-
264263}
0 commit comments