⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getpersonlistactiontest.java

📁 Struts+Spring开发
💻 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 + -