File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
src/test/java/net/sf/jsqlparser Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments