- @RunWith(SpringJUnit4ClassRunner.class)
- @ContextConfiguration({"classpath:/xml/applicationContextTest.xml"})
- @TransactionConfiguration(transactionManager = "tm_cmail_web")
- @Transactional
- public class SysModelTest {
-
- @Resource
- private WebSysModelService modelService;
-
- @Test
- @Transactional
- @Rollback(true)
- public void testCreate(){
- WebSysModel m=new WebSysModel();
- m.setModelMid("HelloDing");
- m.setModelName("ding");
- m.setCreateTime(Calendar.getInstance().getTime());
- m.setModfiyTime(Calendar.getInstance().getTime());
- short s=1;
- m.setModelType(s);
- m.setModelUrlType(s);
-
- modelService.create(m);
- }
-
- }
posted on
2017-04-04 17:09
duenboa
阅读(
164)
评论()
编辑
收藏
举报