PrettyFactory

This commit is contained in:
MaxKey
2020-07-10 22:33:09 +08:00
parent 4861535f44
commit f31615ff4a
3 changed files with 10 additions and 7 deletions

View File

@@ -17,6 +17,7 @@
package org.maxkey.util;
import org.junit.Test;
import org.maxkey.pretty.PrettyFactory;
public class SqlPrettyTest {
@@ -24,8 +25,9 @@ public class SqlPrettyTest {
public SqlPrettyTest() {
}
public static void main(String[] args) {
@Test
public void testSqlFormat() {
String sqlString="select * from userinfo where t='111' order by t,s,t";
System.out.println(PrettyFactory.getSqlPretty().format(sqlString));
}