From a6bc8877a0787b539dd0c1d2bde1fbf234a28754 Mon Sep 17 00:00:00 2001 From: qi Date: Tue, 13 Aug 2019 01:28:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../util/InterfaceProxyFactoryUtilTest.java | 18 --- .../java/org/panda/jdbc/JdbcUtilsTest.java | 50 -------- .../org/panda/jdbc/sql/MysqlBuilderTest.java | 113 ------------------ 3 files changed, 181 deletions(-) delete mode 100644 panda-aop/src/test/java/org/panda/aop/util/InterfaceProxyFactoryUtilTest.java delete mode 100644 panda-jdbc/src/test/java/org/panda/jdbc/JdbcUtilsTest.java delete mode 100644 panda-jdbc/src/test/java/org/panda/jdbc/sql/MysqlBuilderTest.java 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 From fbad8fc3e3e5478a875de5c58b6147b87fad9903 Mon Sep 17 00:00:00 2001 From: qi Date: Tue, 13 Aug 2019 01:29:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/pom.xml b/pom.xml index c83cd47..9fed5fb 100644 --- a/pom.xml +++ b/pom.xml @@ -69,4 +69,28 @@ + + + + org.apache.maven.plugins + maven-source-plugin + + + attach-sources + + jar + + + + + + + + + + nexus-3rd + http://106.12.122.216:8011/nexus/content/repositories/thirdparty/ + + + \ No newline at end of file