testsuperdbconn.java
来自「关于商品的进、销、存管理系统」· Java 代码 · 共 29 行
JAVA
29 行
package supertest;
import junit.framework.TestCase;
import superdb.*;
public class TestSuperDBConn extends TestCase {
public SuperDBConn sdb;
public static void main(String[] args) {
junit.textui.TestRunner.run(TestSuperDBConn.class);
}
public TestSuperDBConn(String arg0) {
super(arg0);
}
protected void setUp() throws Throwable {
super.setUp();
sdb=new SuperDBConn();
}
protected void tearDown() throws Throwable {
super.tearDown();
}
public void testgetConn()
{
this.assertNotNull("kk",sdb.getConn());
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?