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

    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.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:ProvinceDaoTest.java</p>
     * <p>Description:游海东个人开发</p>
     * <p>Copyright:Copyright(c)2013</p>
     * @author:游海东
     * @date:2014-5-10 下午11:13:43
     * @version V1.0
     */
    public class ProvinceDaoTest extends SpringTestBase 
    {
    	@Autowired
    	private ProvinceDao provinceDao;
    	
    	/**
    	 * @author YouHaidong
    	 * @date 2014-05-10
    	 * @description 测试ProvinceDao非空
    	 */
    	@Test
    	@Override
    	public void testNotNull()
    	{
    		assertNotNull(provinceDao);
    		assertTrue(null != provinceDao);
    	}
    	
    	/**
    	 * @author YouHaidong
    	 * @date 2014-05-10
    	 * @description 测试ProvinceDao非空
    	 */
    	@Test
    	public void testFindArea()
    	{
    		String provinceCode = "";
    		String cityCode = "";
    		String countyCode = "";
    		List<Province> list = new ArrayList<Province>();
    		list = provinceDao.findArea(provinceCode, cityCode, countyCode);
    		System.out.println("Dao测试查询出的数据的条数:" + list.size());
    	}
    }
    


  • 相关阅读:
    LeetCode(287)Find the Duplicate Number
    LeetCode(290) Word Pattern
    LeetCode(205)Isomorphic Strings
    LeetCode(201) Bitwise AND of Numbers Range
    LeetCode(200) Number of Islands
    LeetCode(220) Contains Duplicate III
    LeetCode(219) Contains Duplicate II
    命令行执行Qt程序
    LeetCode(228) Summary Ranges
    redis 的安装和使用记录
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13315128.html
Copyright © 2011-2022 走看看