コード例 #1
0
 @Before
 public void init() {
   mockReq = new MockServletRequestFacade(new MockHttpServletRequest());
   state = new RequestState(null);
   requestObject = new ValidatorTestBean();
   state.setRequestObject(requestObject);
   mockReq.setAttribute(Constants.REQUEST_STATE, state);
   validator = new ParameterTypeString();
   validator.setName("test");
   validator.setRequired(true);
   validator.setMember("stringMember");
 }