【发布时间】:2012-01-10 10:59:38
【问题描述】:
我有一个类,我使用 getRequestParameterMap 来检索一些数据,如下所示:
FacesContext fc = FacesContext.getCurrentInstance();
String oidValue = fc.getExternalContext.getRequestParameterMap().get("oidValue");
我需要创建一些 Junit 测试,因为涉及到一些条件,所以我正在寻找一些模拟值的方法:
getRequestParameterMap()
【问题讨论】:
标签: jakarta-ee junit mocking easymock facescontext