@@ -94,14 +94,14 @@ public void getCountOfNoOfRecordsTransferredToTargetBigQueryTable() throws IOExc
94
94
}
95
95
96
96
@ Then ("Validate records transferred to target table is equal to number of records from source table " +
97
- "with filter {string}" )
97
+ "with filter {string}" )
98
98
public void validateRecordsTransferredToTargetTableIsEqualToNumberOfRecordsFromSourceTableWithFilter (String filter )
99
- throws IOException , InterruptedException {
99
+ throws IOException , InterruptedException {
100
100
String projectId = (PluginPropertyUtils .pluginProp ("projectId" ));
101
101
String datasetName = (PluginPropertyUtils .pluginProp ("dataset" ));
102
102
int countRecordsTarget = BigQueryClient .countBqQuery (TestSetupHooks .bqTargetTable );
103
103
String selectQuery = "SELECT count(*) FROM `" + projectId + "." + datasetName + "." +
104
- TestSetupHooks .bqTargetTable + "` WHERE " + PluginPropertyUtils .pluginProp (filter );
104
+ TestSetupHooks .bqTargetTable + "` WHERE " + PluginPropertyUtils .pluginProp (filter );
105
105
Optional <String > result = BigQueryClient .getSoleQueryResult (selectQuery );
106
106
int count = result .map (Integer ::parseInt ).orElse (0 );
107
107
BeforeActions .scenario .write ("Number of records transferred with respect to filter:" + count );
@@ -110,7 +110,7 @@ public void validateRecordsTransferredToTargetTableIsEqualToNumberOfRecordsFromS
110
110
111
111
@ Then ("Validate partition date in output partitioned table" )
112
112
public void validatePartitionDateInOutputPartitionedTable ()
113
- throws IOException , InterruptedException {
113
+ throws IOException , InterruptedException {
114
114
Optional <String > result = BigQueryClient
115
115
.getSoleQueryResult ("SELECT distinct _PARTITIONDATE as pt FROM `" +
116
116
(PluginPropertyUtils .pluginProp ("projectId" )) + "." +
@@ -233,10 +233,10 @@ public void verifyTheBigQueryValidationErrorMessageForInvalidProperty(String pro
233
233
.errorProp (E2ETestConstants .ERROR_MSG_BQ_INCORRECT_CHUNKSIZE );
234
234
} else if (property .equalsIgnoreCase ("bucket" )) {
235
235
expectedErrorMessage = PluginPropertyUtils
236
- .errorProp (E2ETestConstants .ERROR_MSG_BQ_INCORRECT_TEMPORARY_BUCKET );
236
+ .errorProp (E2ETestConstants .ERROR_MSG_BQ_INCORRECT_TEMPORARY_BUCKET );
237
237
} else if (property .equalsIgnoreCase ("table" )) {
238
238
expectedErrorMessage = PluginPropertyUtils
239
- .errorProp (E2ETestConstants .ERROR_MSG_INCORRECT_TABLE_NAME );
239
+ .errorProp (E2ETestConstants .ERROR_MSG_INCORRECT_TABLE_NAME );
240
240
} else {
241
241
expectedErrorMessage = PluginPropertyUtils .errorProp (E2ETestConstants .ERROR_MSG_BQ_INCORRECT_PROPERTY ).
242
242
replaceAll ("PROPERTY" , property .substring (0 , 1 ).toUpperCase () + property .substring (1 ));
@@ -260,5 +260,4 @@ public void validateRecordsTransferredToTargetTableIsEqualToNumberOfRecordsFromS
260
260
BeforeActions .scenario .write ("Number of records transferred from source table to target table:" + count );
261
261
Assert .assertEquals (count , countRecordsTarget );
262
262
}
263
-
264
263
}
0 commit comments