@Test public void testDoGetWhenFileNameIsNullShouldWriteErrorToResponse() throws ServletException, IOException { given(request.getParameter("fileName")).willReturn(null); given(response.getWriter()).willReturn(printWriter); underTest.doGet(request, response); verify(printWriter).write(underTest.returnHintMessage()); }
@Override protected String returnHintMessage() { return "Please give a name to the jar file! e.g.:.../jar?fileName=external.jar"; }
ExternalJarUploadServlet extends CommonExternalUploadServlet { @Override protected String returnHintMessage() { return "Please give a name to the jar file! e.g.:.../jar?fileName=external.jar"; } }
ExternalJarUploadServlet extends CommonExternalUploadServlet { @Override protected String returnHintMessage() { return "Please give a name to the jar file! e.g.:.../jar?fileName=external.jar"; } @Autowired  ExternalJarUploadServlet(UrlAccessLogMessageAssembler urlAccessLogMessageAssembler, StubResourcePathProvider stubResourcePathProvider, FileWriter fileWriter); }
ExternalJarUploadServlet extends CommonExternalUploadServlet { @Override protected String returnHintMessage() { return "Please give a name to the jar file! e.g.:.../jar?fileName=external.jar"; } @Autowired  ExternalJarUploadServlet(UrlAccessLogMessageAssembler urlAccessLogMessageAssembler, StubResourcePathProvider stubResourcePathProvider, FileWriter fileWriter);  }
ExternalJarUploadServlet extends CommonExternalUploadServlet { @Override protected String returnHintMessage() { return "Please give a name to the jar file! e.g.:.../jar?fileName=external.jar"; } @Autowired  ExternalJarUploadServlet(UrlAccessLogMessageAssembler urlAccessLogMessageAssembler, StubResourcePathProvider stubResourcePathProvider, FileWriter fileWriter);   }