diff --git a/panda-aop/src/test/java/org/panda/aop/util/InterfaceProxyFactoryUtilTest.java b/panda-aop/src/test/java/org/panda/aop/util/InterfaceProxyFactoryUtilTest.java deleted file mode 100644 index 350d2d3..0000000 --- a/panda-aop/src/test/java/org/panda/aop/util/InterfaceProxyFactoryUtilTest.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.panda.aop.util; - -import org.panda.aop.service.HelloService; - -import static org.junit.Assert.*; - -public class InterfaceProxyFactoryUtilTest { - - @org.junit.Test - public void newMapperProxy() { - } - - @org.junit.Test - public void invoke() { - HelloService helloService = InterfaceProxyFactoryUtil.newMapperProxy(HelloService.class); - helloService.sayHello("nihoa"); - } -} \ No newline at end of file diff --git a/panda-jdbc/src/test/java/org/panda/jdbc/JdbcUtilsTest.java b/panda-jdbc/src/test/java/org/panda/jdbc/JdbcUtilsTest.java deleted file mode 100644 index edb5a1f..0000000 --- a/panda-jdbc/src/test/java/org/panda/jdbc/JdbcUtilsTest.java +++ /dev/null @@ -1,50 +0,0 @@ -package org.panda.jdbc; - -import org.junit.Test; -import org.panda.jdbc.mode.DbInfo; -import org.panda.jdbc.mode.Table; - -import java.util.List; - -import static org.junit.Assert.*; - -public class JdbcUtilsTest { - - private JdbcUtils jdbcUtils=new JdbcUtils("com.mysql.jdbc.Driver","jdbc:mysql://localhost:3306/ssm?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8","root","mysql"); - - - @Test - public void getDBInfo() { - - DbInfo dbInfo = jdbcUtils.getDBInfo(); - System.out.println(dbInfo); - } - - @Test - public void getAllTable() { - List tableList = jdbcUtils.getAllTable(); - tableList.forEach((table)->{ - System.out.println(table); - }); - } - - @Test - public void update() { - } - - @Test - public void beatchUpdate() { - } - - @Test - public void createTable() { - } - - @Test - public void query() { - } - - @Test - public void release() { - } -} \ No newline at end of file diff --git a/panda-jdbc/src/test/java/org/panda/jdbc/sql/MysqlBuilderTest.java b/panda-jdbc/src/test/java/org/panda/jdbc/sql/MysqlBuilderTest.java deleted file mode 100644 index bf97774..0000000 --- a/panda-jdbc/src/test/java/org/panda/jdbc/sql/MysqlBuilderTest.java +++ /dev/null @@ -1,113 +0,0 @@ -package org.panda.jdbc.sql; - -import com.github.jsonzou.jmockdata.JMockData; -import org.junit.Test; -import org.panda.entity.SysUser; - -import java.util.Date; - -import static org.junit.Assert.*; - -public class MysqlBuilderTest { - - private AbstractDbBuiler abstractDbBuiler = new MysqlBuilder(); - - @Test - public void automaticUpdateDb() { - - } - - @Test - public void concatPageSql() { - StringBuffer sql = new StringBuffer("select count(*) from sys_users"); - String countSql = abstractDbBuiler.concatPageSql(sql.toString(), new PageInterface() { - @Override - public Integer getPage() { - return 2; - } - - @Override - public Integer getPageSize() { - return 20; - } - }); - System.out.println(countSql); - - } - - @Test - public void createTableStr() { - } - - @Test - public void insertSql() { - SysUser sysUser = new SysUser(); - sysUser.setId(1L); - sysUser.setName("admin"); - sysUser.setCreateTime(new Date()); - String sql = abstractDbBuiler.insertSql(sysUser); - System.out.println(sql); - } - - @Test - public void insertSql1() { - } - - @Test - public void updateSql() { - } - - @Test - public void updateSql1() { - } - - @Test - public void deleteSql() { - } - - @Test - public void deleteSql1() { - } - - @Test - public void automaticUpdateDb1() { - } - - @Test - public void concatPageSql1() { - } - - @Test - public void createTableStr1() { - } - - @Test - public void insertSql2() { - AbstractDbBuiler abstractDbBuiler = new MysqlBuilder(); - SysUser sysUser = JMockData.mock(SysUser.class); - System.out.println(sysUser); - sysUser.setId(null); - String insertSql = abstractDbBuiler.insertSql(sysUser); - System.out.println(insertSql); - } - - @Test - public void insertSql3() { - } - - @Test - public void updateSql2() { - } - - @Test - public void updateSql3() { - } - - @Test - public void deleteSql2() { - } - - @Test - public void deleteSql3() { - } -} \ No newline at end of file