TreeToolController extends AbstractCommandController { @Override public void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { NumberFormat nf = NumberFormat.getInstance(request.getLocale()); binder.registerCustomEditor(Long.class, new CustomNumberEditor(Long.class, nf, true)); binder.registerCustomEditor(Boolean.class, "propagateDelete", new CustomBooleanEditor(true)); binder.registerCustomEditor(byte[].class, new ByteArrayMultipartFileEditor()); } TreeToolController(); @Override void initBinder(HttpServletRequest request, ServletRequestDataBinder binder); void setQualityReviewFacade(QualityReviewFacade qrf); String getSuccessView(); void setSuccessView(String successView); HarvestResourceUrlMapper getHarvestResourceUrlMapper(); void setHarvestResourceUrlMapper(
			HarvestResourceUrlMapper harvestResourceUrlMapper); void setEnableAccessTool(boolean enableAccessTool); boolean isEnableAccessTool(); String getUploadedFilesDir(); void setUploadedFilesDir(String uploadedFilesDir); void setAutoQAUrl(String autoQAUrl); String getAutoQAUrl(); void setHarvestLogManager(HarvestLogManager harvestLogManager); void setTargetInstanceManager(TargetInstanceManager targetInstanceManager); static final String DIR_CONTENT; }
@Test public final void testInitBinder() { MockHttpServletRequest request = new MockHttpServletRequest(); ServletRequestDataBinder binder = new ServletRequestDataBinder(new AgencyCommand(), "command"); try { testInstance.initBinder(request, binder); } catch (Exception e) { String message = e.getClass().toString() + " - " + e.getMessage(); log.debug(message); fail(message); } }