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