Skip to content

Commit 585e916

Browse files
author
David Hayes
committed
Fix spotlessJavaCheck
1 parent 33dc452 commit 585e916

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ void toStringTestWithNoParameters() {
107107
}
108108

109109
@Test
110-
void expressionVisitorIsNotCalledWhenNoReturnExpressionDeclared(@Mock ExpressionVisitor<Void> expressionVisitor) {
110+
void expressionVisitorIsNotCalledWhenNoReturnExpressionDeclared(
111+
@Mock ExpressionVisitor<Void> expressionVisitor) {
111112
withFunctionDeclaration = new WithFunctionDeclaration();
112113

113114
withFunctionDeclaration.accept(expressionVisitor, "RANDOM_CONTEXT");
@@ -116,7 +117,8 @@ void expressionVisitorIsNotCalledWhenNoReturnExpressionDeclared(@Mock Expression
116117
}
117118

118119
@Test
119-
void expressionVisitorCalledWhenReturnExpressionDeclared(@Mock ExpressionVisitor<Void> expressionVisitor) {
120+
void expressionVisitorCalledWhenReturnExpressionDeclared(
121+
@Mock ExpressionVisitor<Void> expressionVisitor) {
120122
String context = "RANDOM_CONTEXT";
121123
withFunctionDeclaration = new WithFunctionDeclaration()
122124
.withReturnExpression(expression);

src/test/java/net/sf/jsqlparser/util/TablesNamesFinderTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,14 +701,16 @@ void testIssue2305() throws JSQLParserException {
701701

702702
@Test
703703
void assertWithItemWithFunctionDeclarationDoesNotThrowException() throws JSQLParserException {
704-
String sqlStr = "WITH FUNCTION my_with_item(param1 INT) RETURNS INT RETURN param1 + 1 SELECT * FROM my_table;";
704+
String sqlStr =
705+
"WITH FUNCTION my_with_item(param1 INT) RETURNS INT RETURN param1 + 1 SELECT * FROM my_table;";
705706
assertThatCode(() -> TablesNamesFinder.findTables(sqlStr))
706707
.doesNotThrowAnyException();
707708
}
708709

709710
@Test
710711
void assertWithItemWithFunctionDeclarationReturnsTableInSelect() throws JSQLParserException {
711-
String sqlStr = "WITH FUNCTION my_with_item(param1 INT) RETURNS INT RETURN param1 + 1 SELECT * FROM my_table;";
712+
String sqlStr =
713+
"WITH FUNCTION my_with_item(param1 INT) RETURNS INT RETURN param1 + 1 SELECT * FROM my_table;";
712714
assertThat(TablesNamesFinder.findTables(sqlStr)).containsExactly("my_table");
713715
}
714716
}

0 commit comments

Comments
 (0)