junit 测试
package biz.cld.web.action.judge;
import org.apache.struts2.StrutsSpringJUnit4TestCase;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.opensymphony.xwork2.ActionProxy;
/**
* 类说明
*
* @author 曾修建
* @version 创建时间:2014-7-8 下午03:37:06
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"classpath*:applicationContext.xml"})
public class JudgeActionTest extends StrutsSpringJUnit4TestCase<JudgeAction>{
@Test
public void testselectJudgeList() {
ActionProxy proxy=this.getActionProxy("/EC/selectJudgeList");
JudgeAction judgeAction=(JudgeAction) proxy.getAction();
String result=judgeAction.getAllJudge();
}
}