Skip to content

Commit 4a3eeef

Browse files
committed
fix: clean up formatting
1 parent 677d849 commit 4a3eeef

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

src/test/java/net/sf/jsqlparser/statement/delete/DeleteTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,11 @@ public void testPreferringClause(String sqlStr) throws JSQLParserException {
390390
@Test
391391
public void testDeleteWithSkylineKeywords() throws JSQLParserException {
392392
String statement =
393-
" DELETE " +
394-
" FROM mytable " +
395-
" WHERE low = 1 AND high = 2 AND inverse = 3 AND plus = 4 ";
393+
"DELETE FROM mytable WHERE low = 1 AND high = 2 AND inverse = 3 AND plus = 4";
396394
Delete delete = (Delete) assertSqlCanBeParsedAndDeparsed(statement);
397395
assertEquals("mytable", delete.getTable().toString());
398-
assertEquals("low = 1 AND high = 2 AND inverse = 3 AND plus = 4", delete.getWhere().toString());
396+
assertEquals("low = 1 AND high = 2 AND inverse = 3 AND plus = 4",
397+
delete.getWhere().toString());
399398
}
400399

401400
}

src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6134,12 +6134,11 @@ void testSelectAndInsertWithin2Ctes() throws JSQLParserException {
61346134

61356135
@Test
61366136
public void testSelectWithSkylineKeywords() throws JSQLParserException {
6137-
String statement =
6138-
" SELECT low, high, inverse, plus " +
6139-
" FROM mytable ";
6137+
String statement = "SELECT low, high, inverse, plus FROM mytable";
61406138
Select select = (Select) assertSqlCanBeParsedAndDeparsed(statement);
61416139
assertEquals("mytable", select.getPlainSelect().getFromItem().toString());
6142-
assertEquals("[low, high, inverse, plus]", select.getPlainSelect().getSelectItems().toString());
6140+
assertEquals("[low, high, inverse, plus]",
6141+
select.getPlainSelect().getSelectItems().toString());
61436142
}
61446143

61456144
}

src/test/java/net/sf/jsqlparser/statement/update/UpdateTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,7 @@ public void testUpdateWithBoolean() throws JSQLParserException {
571571
@Test
572572
public void testUpdateWithSkylineKeywords() throws JSQLParserException {
573573
String statement =
574-
" UPDATE mytable " +
575-
" SET low = 1, high = 2, inverse = 3, plus = 4 " +
576-
" WHERE id = 6";
574+
"UPDATE mytable SET low = 1, high = 2, inverse = 3, plus = 4 WHERE id = 6";
577575
Update update = (Update) PARSER_MANAGER.parse(new StringReader(statement));
578576
assertEquals("mytable", update.getTable().toString());
579577
assertEquals(4, update.getUpdateSets().size());

0 commit comments

Comments
 (0)