📄 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 + -