zTree实现地市县三级级联Service接口测试

ProvinceServiceTest.java:

/**
 * @Title:ProvinceServiceTest.java
 * @Package:com.gwtjs.service
 * @Description:TODO
 * @author:Youhaidong(游海东)
 * @date:2014-5-11 上午12:24:09
 * @version V1.0
 */
package com.gwtjs.service;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

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

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.gwtjs.SpringTestBase;
import com.gwtjs.model.Province;

/**
 * 类功能说明
 * 类修改者 修改日期
 * 修改说明
 * <p>Title:ProvinceServiceTest.java</p>
 * <p>Description:游海东个人开发</p>
 * <p>Copyright:Copyright(c)2013</p>
 * @author:游海东
 * @date:2014-5-11 上午12:24:09
 * @version V1.0
 */
public class ProvinceServiceTest extends SpringTestBase
{
	@Autowired
	private ProvinceService provinceService;

	/**
	 * @author YouHaidong
	 * @date 2014-05-10
	 * @description 测试ProvinceService非空
	 */
	@Test
	@Override
	public void testNotNull()
	{
		assertNotNull(provinceService);
		assertTrue(null != provinceService);
	}

	/**
	 * @author YouHaidong
	 * @date 2014-05-10
	 * @description 测试testFindArea
	 */
	@Test
	public void testFindArea()
	{
		String provinceCode = "";
		String cityCode = "";
		String countyCode = "";
		List<Province> list = new ArrayList<Province>();
		list = provinceService.findArea(provinceCode, cityCode, countyCode);
		System.out.println("Service测试查询出的数据的条数:" + list.size());
	}
}

zTree实现地市县三级级联Service接口测试,布布扣,bubuko.com

时间: 2024-10-25 04:03:46

zTree实现地市县三级级联Service接口测试的相关文章

zTree实现地市县三级级联DAO接口测试

ProvinceDaoTest.java: /** * @Title:ProvinceDaoTest.java * @Package:com.gwtjs.dao * @Description:省份地市县级三级级联DAO接口测试 * @author:Youhaidong(游海东) * @date:2014-5-10 下午11:13:43 * @version V1.0 */ package com.gwtjs.dao; import static org.junit.Assert.assertNo

zTree实现地市县三级级联Service接口

ProvinceService.java: /** * @Title:ProvinceService.java * @Package:com.gwtjs.service * @Description:省份地市县级三级级联Service接口 * @author:Youhaidong(游海东) * @date:2014-5-11 上午12:16:58 * @version V1.0 */ package com.gwtjs.service; import java.util.List; import

zTree实现地市县三级级联Service接口实现

ProvinceServiceImpl.java: /** * @Title:ProvinceServiceImpl.java * @Package:com.gwtjs.service.impl * @Description:省份地市县级三级级联Service接口实现 * @author:Youhaidong(游海东) * @date:2014-5-11 上午12:17:44 * @version V1.0 */ package com.gwtjs.service.impl; import ja

zTree实现地市县三级级联Service接口測试

ProvinceServiceTest.java: /** * @Title:ProvinceServiceTest.java * @Package:com.gwtjs.service * @Description:TODO * @author:Youhaidong(游海东) * @date:2014-5-11 上午12:24:09 * @version V1.0 */ package com.gwtjs.service; import static org.junit.Assert.asser

zTree实现地市县三级级联报错(三)

zTree实现地市县三级级联报错(三) 1.详细报错例如以下 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-5-11 22:37:22 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Nat

zTree实现地市县三级级联Action类

ProvinceAction.java: /** * @Title:ProvinceAction.java * @Package:com.gwtjs.struts.action.area * @Description: * @author:Youhaidong(游海东) * @date:2014-5-11 上午12:27:54 * @version V1.0 */ package com.gwtjs.struts.action.area; import java.util.List; impor

zTree实现地市县三级级联DAO接口

ProvinceDao.java: /** * @Title:ProvinceDao.java * @Package:com.gwtjs.dao * @Description:省份地市县级三级级联DAO接口 * @author:Youhaidong(游海东) * @date:2014-5-10 下午10:39:21 * @version V1.0 */ package com.gwtjs.dao; import java.util.List; import com.gwtjs.model.Pro

zTree实现地市县三级级联DAO接口实现

ProvinceDaoImpl.java: /** * @Title:ProvinceDaoImpl.java * @Package:com.gwtjs.dao.impl * @Description:省份地市县级三级级联DAO接口实现 * @author:Youhaidong(游海东) * @date:2014-5-10 下午10:40:35 * @version V1.0 */ package com.gwtjs.dao.impl; import java.util.ArrayList; i

zTree实现地市县三级级联报错(二)

zTree实现地市县三级级联 1.具体报错如下 2014-05-10 23:29:13 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] WARN com.mchange.v2.resourcepool.BasicResourcePool - [email protected]5 -- Acquisition Attempt Failed!!! Clearing pending acquires. While tr