getpersonlistactiontest.java
来自「Struts+Spring开发」· Java 代码 · 共 33 行
JAVA
33 行
package org.ssi.dwr;
import java.util.Iterator;
import java.util.List;
import org.ssi.BaseTest;
import org.ssi.dto.AccountDTO;
public class GetPersonListActionTest extends BaseTest {
private GetAccountListAction action = null;
protected void setUp() throws Exception {
super.setUp();
action = (GetAccountListAction) context.getBean("getPersonListByDWR");
}
protected void tearDown() throws Exception {
action = null;
super.tearDown();
}
public void testGetPersonList() throws Exception {
List coll = action.getAccountDTOList();
System.out.println("getPersonList:" + coll.size());
Iterator iter = coll.iterator();
while (iter.hasNext()) {
System.out.println((AccountDTO) iter.next());
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?