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() {
107
107
}
108
108
109
109
@ Test
110
- void expressionVisitorIsNotCalledWhenNoReturnExpressionDeclared (@ Mock ExpressionVisitor <Void > expressionVisitor ) {
110
+ void expressionVisitorIsNotCalledWhenNoReturnExpressionDeclared (
111
+ @ Mock ExpressionVisitor <Void > expressionVisitor ) {
111
112
withFunctionDeclaration = new WithFunctionDeclaration ();
112
113
113
114
withFunctionDeclaration .accept (expressionVisitor , "RANDOM_CONTEXT" );
@@ -116,7 +117,8 @@ void expressionVisitorIsNotCalledWhenNoReturnExpressionDeclared(@Mock Expression
116
117
}
117
118
118
119
@ Test
119
- void expressionVisitorCalledWhenReturnExpressionDeclared (@ Mock ExpressionVisitor <Void > expressionVisitor ) {
120
+ void expressionVisitorCalledWhenReturnExpressionDeclared (
121
+ @ Mock ExpressionVisitor <Void > expressionVisitor ) {
120
122
String context = "RANDOM_CONTEXT" ;
121
123
withFunctionDeclaration = new WithFunctionDeclaration ()
122
124
.withReturnExpression (expression );
Original file line number Diff line number Diff line change @@ -701,14 +701,16 @@ void testIssue2305() throws JSQLParserException {
701
701
702
702
@ Test
703
703
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;" ;
705
706
assertThatCode (() -> TablesNamesFinder .findTables (sqlStr ))
706
707
.doesNotThrowAnyException ();
707
708
}
708
709
709
710
@ Test
710
711
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;" ;
712
714
assertThat (TablesNamesFinder .findTables (sqlStr )).containsExactly ("my_table" );
713
715
}
714
716
}
You can’t perform that action at this time.
0 commit comments