File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
lib/src/test/java/com/diffplug/spotless/sql/dbeaver Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 55import org .junit .jupiter .api .BeforeEach ;
66import org .junit .jupiter .api .Test ;
77
8+ import java .util .Properties ;
9+
810class SQLTokenizedFormatterTest {
911 private SQLTokenizedFormatter formatter ;
1012
13+
1114 @ BeforeEach
1215 void setUp () {
13- DBeaverSQLFormatterConfiguration config = new DBeaverSQLFormatterConfiguration ();
14- config .setStatementDelimiter (";" );
15- config .setKeywordCase (DBeaverSQLFormatterConfiguration .KeywordCase .UPPER );
16+ Properties properties = new Properties ();
17+ properties .setProperty ("sql.formatter.keyword.case" , "UPPER" );
18+ properties .setProperty ("sql.formatter.statement.delimiter" , ";" );
19+ properties .setProperty ("sql.formatter.indent.type" , "space" );
20+ properties .setProperty ("sql.formatter.indent.size" , "4" );
21+
22+ DBeaverSQLFormatterConfiguration config = new DBeaverSQLFormatterConfiguration (properties );
1623 formatter = new SQLTokenizedFormatter (config );
1724 }
1825
You can’t perform that action at this time.
0 commit comments