Skip to content

Commit 074e27e

Browse files
added semicolons on all sql statements
1 parent b10607a commit 074e27e

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/test/java/com/powertester/database/DBConnectionFailingTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

src/test/java/com/powertester/database/DBConnectionPassingTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

src/test/java/com/powertester/utils/CreateExpectedCSVFileTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)