码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-05-11 21:28:23      阅读:310      评论:0      收藏:0      [点我收藏+]

标签:ztree   三级级联   struts2   hibernate   spring   

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

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

标签:ztree   三级级联   struts2   hibernate   spring   

原文地址:http://blog.csdn.net/you23hai45/article/details/25515183

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!