?? testgoodsinfomanager.java
字號:
package supertest;
import java.util.*;
import junit.framework.TestCase;
import supershopmanager.*;
import supercms.*;
public class TestGoodsInfoManager extends TestCase {
public GoodsInfoManager gim;
public TestGoodsInfoManager(String name) {
super(name);
}
protected void setUp() throws Throwable {
super.setUp();
gim=new GoodsInfoManager();
}
protected void tearDown() throws Throwable {
super.tearDown();
}
public void testcountGoodsInfo() {
GoodsInfo gi=new GoodsInfo();
gi.setKindnumber(6);
long count=gim.countGoodsInfo(gi, 4);
System.out.println(count);
}
public static void main(String aa[])
{
junit.textui.TestRunner.run(TestGoodsInfoManager.class);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -