我有一个类,我使用 getRequestParameterMap 来检索一些数据,如下所示:
FacesContext fc = FacesContext.getCurrentInstance();
String oidValue = fc.getExternalContext.getRequestParameterMap().get("oidValue");
而且我需要创建一些 Junit 测试,因为涉及一些条件,所以我正在寻找的是一些模拟值的方法:
getRequestParameterMap()