📄 testgroupibatisservice.java
字号:
/*
* Created on 2005-6-9 Author 泰伯子仪
*
* Copyright (c) 2003-2005 by HodeSoft
* All rights reserved.
*/
package test.rbac.service;
import org.sanv.rbac.model.GroupModel;
import org.sanv.rbac.service.impl.GroupIbatisService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import junit.framework.Assert;
import junit.framework.TestCase;
public class TestGroupIbatisService extends TestCase
{
private GroupIbatisService service;
protected void setUp() throws Exception
{
// TODO Auto-generated method stub
super.setUp();
ApplicationContext ctx = new FileSystemXmlApplicationContext(
new String[] { "/WEB-INF/src/config/common/ApplicationContext.xml",
"/WEB-INF/src/config/rbac/bean/ApplicationContext-Service.xml"});
service = (GroupIbatisService)ctx.getBean("groupIbatisServiceProxy");
}
public void testInsert()
{
GroupModel group = new GroupModel();
group.setStrName("测试部");
group.setIntFatherID(0);
group.setIntLevel(1);
Assert.assertNull(service.insertObject(group));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -