设为首页 加入收藏

TOP

基于模板的简易代码生成器Python源码(二)
2014-11-23 19:34:00 来源: 作者: 【 】 浏览:45
Tags:基于 模板 简易 代码 成器 Python 源码
ce.UpdateHintDAO;
import com.alipay.mspcore.common.dal.dataobject.UpdateHint;
import com.alipay.sofa.runtime.test.AnnotatedAutowireSofaTestCase;
import com.iwallet.biz.common.util.money.Money;


/**
* @author chenxin
* @version $Id: IbatisUpdateHintDAOTester.java, v 0.1 2011-12-30 14:31:38 chenxin Exp $
*/
public class IbatisUpdateHintDAOTester extends AnnotatedAutowireSofaTestCase {


@Override
public String[] getConfigurationLocations() {
return new String[] { "META-INF/spring/common-dal-db.xml",
"META-INF/spring/mobilespcore-common-dal-dao.xml", "META-INF/spring/common-dal.xml" };
}


@Override
public String[] getResourceFilterNames() {
return new String[] { "META-INF/spring/common-dal-db.xml" };
}


@Override
public String[] getWebServiceConfigurationLocations() {
return new String[] {};
}


private UpdateHintDAO getUpdateHintDAO() {
UpdateHintDAO dao = (UpdateHintDAO) this.getBean("updateHintDAO", UpdateHintDAO.class, null);
return dao;
}


public void testUpdateHintDAO() {
UpdateHintDAO configDAO = getUpdateHintDAO();
Assert.assertNotNull(configDAO);
}


public void test() {
UpdateHintDO updateHintDO = new UpdateHintDO();
updateHintDO.setGmtCreate(new Date());
updateHintDO.setGmtModified(new Date());
updateHintDO.setId(10000);


UpdateHintDAO updateHintDAO = getUpdateHintDAO();
long result = updateHintDAO.insert(updateHintDO);
Assert.assertTrue(result > 0);
}
}


首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇OpenCV2.0.0在DM365上的移植 下一篇Matlab调用cpp+第三方库

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: