testgoodstypemanager.java

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

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