?? getpersonlistactiontest.java
字號:
package org.ssi.action;
import java.util.Collection;
import java.util.Iterator;
import junit.framework.TestCase;
import org.ssi.dto.Person;
public class GetPersonListActionTest extends TestCase {
/**
* An example test that asserts true.
*
* @throws Exception
* On invalid assertions
*/
public void testGetPersonLIst() throws Exception {
GetAccountListAction action=new GetAccountListAction();
String returnStr = action.execute();
TestCase.assertEquals(returnStr, "success");
Collection coll=action.getPersonList();
Iterator iter = coll.iterator();
System.out.println("getPersonList:");
while(iter.hasNext()){
System.out.println((Person)iter.next());
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -