📄 testgoodstypemanager.java
字号:
package supertest;
import junit.framework.TestCase;
import supercms.*;
import supershopmanager.*;
public class TestGoodsTypeManager extends TestCase {
public GoodsTypeManager gtm;
public static void main(String[] args) {
junit.textui.TestRunner.run(TestGoodsTypeManager.class);
}
public TestGoodsTypeManager(String arg0) {
super(arg0);
}
protected void setUp() throws Throwable {
super.setUp();
gtm=new GoodsTypeManager();
}
protected void tearDown() throws Throwable {
super.tearDown();
}
/*
* Test method for 'supercms.GoodsTypeManager.addGoodsType(GoodsType)'
*/
public void testgetcont() {
try {
int n=gtm.getcount();
System.out.println(n);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -