⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 warehousedaotest.java

📁 老牌java开发的物流管理系统 详细的我也没有怎么看 好像是恒基的
💻 JAVA
字号:
package com.wl.test;



import java.util.ArrayList;
import java.util.List;

import junit.framework.Assert;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import com.wl.dao.WarehouseDAO;
import com.wl.entity.WareHouseInfo;

public class WarehouseDAOTest {
	WarehouseDAO warehousedao;
	@Before
	public void setUp() throws Exception {
	warehousedao=new WarehouseDAO();
	}

	@After
	public void tearDown() throws Exception {
	}
    /**
     * @author tianxiaoshun
     * 测试仓库位置信息插入方法
     */
	@Test
	public void testInsertWarehouse() {
		WareHouseInfo warehouseinfo=new WareHouseInfo("tian","sdfj",1,"sdf");
		Assert.assertEquals(true,warehousedao.insertWarehouse(warehouseinfo));
	}
   /**
    * @author tianxiaoshun
    * 测试仓库位置信息查询所有方法
    */
	@Test
	public void testSelectAllWarehouseInfo() {
		List<WareHouseInfo> list=new ArrayList<WareHouseInfo>();
		list=null;
	//	list=warehousedao.selectAllWarehouseInfo();
		Assert.assertEquals(true,list!=null);
	}
    /**
     * @author tianxiaoshun
     * 测试仓库位置信息删除方法
     */
	@Test
	public void testDeleteWarehouseInfoByWarehouseId() {
		Assert.assertEquals(true,warehousedao.deleteWarehouseInfoByWarehouseId(1));
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -