- @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);
- }
- }