搞了一个晚上,未果。
测试代码如下:
测试代码
package
org.xiziyin.shop.dal.dao.jdbcimpl;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.testng.Assert;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import org.xiziyin.shop.BaseTest;
import org.xiziyin.shop.dal.dao.GoodsDAO;
import org.xiziyin.shop.dal.dao.exception.DAOException;
import org.xiziyin.shop.dal.dataobject.Goods;
import java.util.List;
/**
* Class JdbcTemplateGoodsDAOTest ...
*
* @author <a href="mailto:czy88840616@163.com">czy</a>
* Created on 2010-2-4 22:20:36
*/
public class JdbcTemplateGoodsDAOTest extends BaseTest implements InitializingBean{
private GoodsDAO goodsDAO;
/**
* Method getGoodsDAO returns the goodsDAO of this JdbcTemplateGoodsDAOTest object.
*
*
*
* @return the goodsDAO (type GoodsDAO) of this JdbcTemplateGoodsDAOTest object.
*/
public GoodsDAO getGoodsDAO() {
return goodsDAO;
}
/**
* Method setGoodsDAO sets the goodsDAO of this JdbcTemplateGoodsDAOTest object.
*
*
*
* @param goodsDAO the goodsDAO of this JdbcTemplateGoodsDAOTest object.
*
*/
public
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.testng.Assert;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import org.xiziyin.shop.BaseTest;
import org.xiziyin.shop.dal.dao.GoodsDAO;
import org.xiziyin.shop.dal.dao.exception.DAOException;
import org.xiziyin.shop.dal.dataobject.Goods;
import java.util.List;
/**
* Class JdbcTemplateGoodsDAOTest ...
*
* @author <a href="mailto:czy88840616@163.com">czy</a>
* Created on 2010-2-4 22:20:36
*/
public class JdbcTemplateGoodsDAOTest extends BaseTest implements InitializingBean{
private GoodsDAO goodsDAO;
/**
* Method getGoodsDAO returns the goodsDAO of this JdbcTemplateGoodsDAOTest object.
*
*
*
* @return the goodsDAO (type GoodsDAO) of this JdbcTemplateGoodsDAOTest object.
*/
public GoodsDAO getGoodsDAO() {
return goodsDAO;
}
/**
* Method setGoodsDAO sets the goodsDAO of this JdbcTemplateGoodsDAOTest object.
*
*
*
* @param goodsDAO the goodsDAO of this JdbcTemplateGoodsDAOTest object.
*
*/
public