File tree Expand file tree Collapse file tree
src/test/java/net/sf/jsqlparser/statement/select Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88class FetchTest {
99 @ Test
1010 void testParser () throws JSQLParserException {
11- String sqlStr = "SELECT table_schema \n " +
12- "FROM information_schema.tables \n " +
13- "fetch next :variable rows only" ;
11+ String sqlStr = "SELECT table_schema \n " + "FROM information_schema.tables \n "
12+ + "fetch next :variable rows only" ;
1413 TestUtils .assertSqlCanBeParsedAndDeparsed (sqlStr , true );
1514 }
1615
1716 @ Test
1817 void getExpression () throws JSQLParserException {
19- String sqlStr = "SELECT table_schema \n " +
20- "FROM information_schema.tables \n " +
21- "fetch next (SELECT 1 FROM DUAL) rows only" ;
18+ String sqlStr = "SELECT table_schema \n " + "FROM information_schema.tables \n "
19+ + "fetch next (SELECT 1 FROM DUAL) rows only" ;
2220 Select select = (Select ) TestUtils .assertSqlCanBeParsedAndDeparsed (sqlStr , true );
2321 PlainSelect plainSelect = (PlainSelect ) select .getSelectBody ();
2422 Fetch fetch = plainSelect .getFetch ();
25- Assertions .assertInstanceOf ( SubSelect .class , fetch .getExpression ());
23+ Assertions .assertInstanceOf (SubSelect .class , fetch .getExpression ());
2624 }
27- }
25+ }
You can’t perform that action at this time.
0 commit comments