package com.snda.swp.account.unit.dao;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.transaction.TransactionConfiguration; import org.springframework.transaction.annotation.Transactional;
/**
*@author 作者 dinghuiyuan E-mail:dhy830710@163.com
*@version 创建时间:2010-8-22 上午06:57:02 类说明: 注意请不要使用ECLIPSE自带的JUNIT
*包
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:applicationContext-common.xml" }) @TransactionConfiguration(transactionManager = "transactionManager",defaultRollback = false)
@Transactional
public class BaseTestCase { }
测试类继承基类即可