zoukankan      html  css  js  c++  java
  • zTree实现地市县三级级联Service接口測试

    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());
    	}
    }
    


  • 相关阅读:
    easyui里弹窗的两种表现形式
    如何获得 request, "request.getSession(true).setAttribute("a",a);"与“request.setAttribute("a",a);”区别
    JSTL和EL的区别
    windows下安装多个tomcat服务
    谷歌浏览器控制台使用
    递归和迭代有什么区别?
    left join ,right join ,inner join ,cross join 区别
    sql良好习惯
    添加了一个字段,查询速度突然变慢
    热点账户问题-转
  • 原文地址:https://www.cnblogs.com/mfrbuaa/p/3959438.html
Copyright © 2011-2022 走看看