📄 departmentprocessbeantest.java
字号:
package cn.myapps.core.department.ejb;
import java.util.Collection;
import junit.framework.TestCase;
import cn.myapps.base.action.ParamsTable;
import cn.myapps.core.workflow.utility.Sequence;
import cn.myapps.util.ProcessFactory;
public class DepartmentProcessBeanTest extends TestCase {
DepartmentProcess process;
public static void main(String[] args) {
junit.textui.TestRunner.run(DepartmentProcessBeanTest.class);
}
protected void setUp() throws Exception {
super.setUp();
process = (DepartmentProcess) ProcessFactory
.createProcess(DepartmentProcess.class);
}
protected void tearDown() throws Exception {
super.tearDown();
}
/*
* Test method for
* 'cn.myapps.core.department.ejb.DepartmentProcessBean.doCreate(ValueObject)'
*/
public void testDoCreateValueObject() throws Exception {
DepartmentVO vo = new DepartmentVO();
vo.setId(Sequence.getSequence());
process.doCreate(vo);
DepartmentVO vo2 = (DepartmentVO) process.doView(vo.getId());
assertEquals("Department did not been Create successful!", vo.getId(),
vo2.getId());
}
/*
* Test method for
* 'cn.myapps.core.department.ejb.DepartmentProcessBean.doRemove(String)'
*/
public void testDoRemoveString() {
}
/*
* Test method for
* 'cn.myapps.core.department.ejb.DepartmentProcessBean.doUpdate(ValueObject)'
*/
public void testDoUpdateValueObject() {
}
/*
* Test method for
* 'cn.myapps.core.department.ejb.DepartmentProcessBean.doSimpleQuery(ParamsTable)'
*/
public void testDoSimpleQuery() throws Exception {
process = (DepartmentProcess) ProcessFactory
.createProcess(DepartmentProcess.class);
for (int i = 0; i < 10; i++) {
System.out.println("SimpleQuery times->" + i);
Collection cols = process.doSimpleQuery(new ParamsTable());
assertNotNull(cols);
}
}
/*
* Test method for
* 'cn.myapps.core.department.ejb.DepartmentProcessBean.getDatasByParent(String)'
*/
public void testGetDatasByParent() {
}
/*
* Test method for
* 'cn.myapps.core.department.ejb.DepartmentProcessBean.getIdByName(String)'
*/
public void testGetIdByName() {
}
/*
* Test method for
* 'cn.myapps.core.department.ejb.DepartmentProcessBean.deepSearchDepartmentTree(Collection,
* DepartmentVO, String, int)'
*/
public void testDeepSearchDepartmentTree() {
}
/*
* Test method for
* 'cn.myapps.core.department.ejb.DepartmentProcessBean.getUnderDeptList(String)'
*/
public void testGetUnderDeptList() {
}
/*
* Test method for
* 'cn.myapps.core.department.ejb.DepartmentProcessBean.getSuperiorDeptList(String)'
*/
public void testGetSuperiorDeptList() {
}
/*
* Test method for
* 'cn.myapps.core.department.ejb.DepartmentProcessBean.changLevel(DepartmentVO)'
*/
public void testChangLevel() {
}
/*
* Test method for
* 'cn.myapps.core.department.ejb.DepartmentProcessBean.getDepartmentByLevel(int)'
*/
public void testGetDepartmentByLevel() {
}
/*
* Test method for
* 'cn.myapps.core.department.ejb.DepartmentProcessBean.getDepartmentByName(String)'
*/
public void testGetDepartmentByName() {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -