@Test public void validateParameter() { assertFalse(servlet.validateParameter(null)); assertFalse(servlet.validateParameter("")); assertTrue(servlet.validateParameter("123")); }
protected boolean validateParameter(String param) { return param != null && StringUtils.isNotEmpty(param); }
BaseServlet extends SlingAllMethodsServlet { protected boolean validateParameter(String param) { return param != null && StringUtils.isNotEmpty(param); } }
BaseServlet extends SlingAllMethodsServlet { protected boolean validateParameter(String param) { return param != null && StringUtils.isNotEmpty(param); }  }
BaseServlet extends SlingAllMethodsServlet { protected boolean validateParameter(String param) { return param != null && StringUtils.isNotEmpty(param); }   }
BaseServlet extends SlingAllMethodsServlet { protected boolean validateParameter(String param) { return param != null && StringUtils.isNotEmpty(param); }    }