@Test public void URLがそのまま返却される() throws Exception { String inputURL = "/foo/bar"; TokenManager manager = new TokenManager(); manager.afterPropertiesSet(); TokenRequestDataValueProcessing t = new TokenRequestDataValueProcessing(); Field managerField = t.getClass().getDeclaredField("manager"); managerField.setAccessible(true); managerField.set(t, manager); String processedUrl = t.processUrl(request, inputURL); assertThat(processedUrl, is(inputURL)); }
@Override public String processUrl(HttpServletRequest request, String url) { return url; }
TokenRequestDataValueProcessing implements RequestDataValueProcessor { @Override public String processUrl(HttpServletRequest request, String url) { return url; } }
TokenRequestDataValueProcessing implements RequestDataValueProcessor { @Override public String processUrl(HttpServletRequest request, String url) { return url; } TokenRequestDataValueProcessing(); }
TokenRequestDataValueProcessing implements RequestDataValueProcessor { @Override public String processUrl(HttpServletRequest request, String url) { return url; } TokenRequestDataValueProcessing(); String processAction(HttpServletRequest request, String action); @Override String processAction(HttpServletRequest request, String action, String httpMethod); @Override String processFormFieldValue(HttpServletRequest request, String name, String value, String type); @Override Map<String, String> getExtraHiddenFields(HttpServletRequest request); @Override String processUrl(HttpServletRequest request, String url); }
TokenRequestDataValueProcessing implements RequestDataValueProcessor { @Override public String processUrl(HttpServletRequest request, String url) { return url; } TokenRequestDataValueProcessing(); String processAction(HttpServletRequest request, String action); @Override String processAction(HttpServletRequest request, String action, String httpMethod); @Override String processFormFieldValue(HttpServletRequest request, String name, String value, String type); @Override Map<String, String> getExtraHiddenFields(HttpServletRequest request); @Override String processUrl(HttpServletRequest request, String url);  }