`
jxqc_job
  • 浏览: 529 次
社区版块
存档分类
最新评论
收藏列表
标题 标签 来源
单元测试-Junit-Dao层 单元测试-junit-dao层
package com.tdtech.cps.test.daotest;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.tdtech.cps.dao.BillDao;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:applicationContext-*.xml" })
public class TestBillDao {
	@Autowired
	private BillDao billDao;


	public BillDao getBillDao() {
		return billDao;
	}
	public void setBillDao(BillDao billDao) {
		this.billDao = billDao;
	}




	@Test
	public void testFindBillListGroupBySellClass() {
//		Map<SellClass, List<Bill>> map = billDao.findBillListGroupBySellClass(16);
//		for (SellClass sell : map.keySet()) {
////			System.out.println(sell.getName()+"===============================");
//			for (Bill bill : map.get(sell)) {
//				System.out.println(bill.getDhy());
//			}
//		}
	}		

}
Global site tag (gtag.js) - Google Analytics