File tree Expand file tree Collapse file tree
src/test/java/com/powertester Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ void testCompareTwoSQLtargetsWithDefaultSettings() {
3333 // But if the app works as a batch and takes significant time to process data, it might also make sense to do this at the project level.
3434
3535 // Assert: Get source and target data to compare
36- List <Map <String , String >> sourceRows = db .query ("SELECT * FROM source" );
37- List <Map <String , String >> targetRows = db .query ("SELECT * FROM target" );
36+ List <Map <String , String >> sourceRows = db .query ("SELECT * FROM source; " );
37+ List <Map <String , String >> targetRows = db .query ("SELECT * FROM target; " );
3838
3939 // Completeness check: Assert that both source and target are of same size.
4040 assertEquals (sourceRows .size (), targetRows .size ());
@@ -87,7 +87,7 @@ void testCompareTwoSQLsShowAnchorKeyButIgnoreAnchorFromComparison() throws java.
8787
8888 @ AfterAll
8989 static void tearDownAll () {
90- db .update ("DROP TABLE source" );
91- db .update ("DROP TABLE target" );
90+ db .update ("DROP TABLE source; " );
91+ db .update ("DROP TABLE target; " );
9292 }
9393}
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ void compareOutputOfTwoSQLStatements() {
5656 // But if the app works as a batch and takes significant time to process data, it might also make sense to do this at the project level.
5757
5858 // Assert: Get input and output data to compare
59- List <Map <String , String >> empRows = db .query ("SELECT * FROM emp" );
60- List <Map <String , String >> customerRows = db .query ("SELECT * FROM customer" );
59+ List <Map <String , String >> empRows = db .query ("SELECT * FROM emp; " );
60+ List <Map <String , String >> customerRows = db .query ("SELECT * FROM customer; " );
6161
6262 // Completeness check: Assert that both input and output are of same size.
6363 assertEquals (empRows .size (), customerRows .size ());
@@ -68,7 +68,7 @@ void compareOutputOfTwoSQLStatements() {
6868
6969 @ AfterAll
7070 static void tearDownAll () {
71- db .update ("DROP TABLE emp" );
72- db .update ("DROP TABLE customer" );
71+ db .update ("DROP TABLE emp; " );
72+ db .update ("DROP TABLE customer; " );
7373 }
7474}
Original file line number Diff line number Diff line change @@ -46,6 +46,6 @@ void generateExpectedCSVFileFromActualSQLOutput() throws java.io.IOException {
4646
4747 @ AfterAll
4848 static void tearDownAll () {
49- db .update ("DROP TABLE student" );
49+ db .update ("DROP TABLE student; " );
5050 }
5151}
You can’t perform that action at this time.
0 commit comments