📄 roleactiontest.java
字号:
package cn.myapps.core.role.action;
import junit.framework.TestCase;
import cn.myapps.core.role.ejb.RoleVO;
public class RoleActionTest extends TestCase {
private RoleAction action;
public static void main(String[] args) {
junit.textui.TestRunner.run(RoleActionTest.class);
}
protected void setUp() throws Exception {
super.setUp();
action = new RoleAction();
}
protected void tearDown() throws Exception {
super.tearDown();
}
public void testDoSave() {
try {
RoleVO vo = new RoleVO();
vo.setName("Jarod Role");
action.setContent(vo);
String rslt = action.doSave();
System.out.println(rslt);
} catch (Exception e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -