删除部分文件

master
星期八 5 years ago
parent f87a2f4cd5
commit a6bc8877a0
  1. 18
      panda-aop/src/test/java/org/panda/aop/util/InterfaceProxyFactoryUtilTest.java
  2. 50
      panda-jdbc/src/test/java/org/panda/jdbc/JdbcUtilsTest.java
  3. 113
      panda-jdbc/src/test/java/org/panda/jdbc/sql/MysqlBuilderTest.java

@ -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");
}
}

@ -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<Table> 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() {
}
}

@ -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() {
}
}
Loading…
Cancel
Save