HarvestNowController extends AbstractFormController { @Override protected ModelAndView showForm(HttpServletRequest aReq, HttpServletResponse aResp, BindException aErrs) throws Exception { if (log.isWarnEnabled()) { log.warn("the showForm method is not supported in this class."); } return null; } HarvestNowController(); void setHarvestCoordinator(HarvestCoordinator harvestCoordinator); void setTargetInstanceManager(TargetInstanceManager targetInstanceManager); void setMessageSource(MessageSource messageSource);  }
@Test public final void testShowForm() { MockHttpServletRequest request = new MockHttpServletRequest(); MockHttpServletResponse response = new MockHttpServletResponse(); BindException aErrors = new BindException(new SearchCommand(), null); try { assertNull(testInstance.showForm(request, response, aErrors)); } catch(Exception e) { fail(e.getMessage()); } }