testgoodsinfomanager.java

来自「关于商品的进、销、存管理系统」· Java 代码 · 共 37 行

JAVA
37
字号
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 + =
减小字号Ctrl + -
显示快捷键?