@Test public void testPackagePathSplitting() { SimpleFlipBootstrapServlet servlet = new SimpleFlipBootstrapServlet(); String[] expectedPath = new String[]{"foo", "bar", "baz", "bat"}; String[] actualPath = servlet.getPackagesToSearch("foo, bar :baz;bat"); assertEquals(expectedPath.length, actualPath.length); for (int i = 0; i < expectedPath.length; i++) { assertEquals(expectedPath[i], actualPath[i]); } }
protected String[] getPackagesToSearch(String packagePath) { if (packagePath == null) { packagePath = ""; } return packagePath.split("\\s*[,:;]\\s*"); }
SimpleFlipBootstrapServlet extends HttpServlet { protected String[] getPackagesToSearch(String packagePath) { if (packagePath == null) { packagePath = ""; } return packagePath.split("\\s*[,:;]\\s*"); } }
SimpleFlipBootstrapServlet extends HttpServlet { protected String[] getPackagesToSearch(String packagePath) { if (packagePath == null) { packagePath = ""; } return packagePath.split("\\s*[,:;]\\s*"); }  }
SimpleFlipBootstrapServlet extends HttpServlet { protected String[] getPackagesToSearch(String packagePath) { if (packagePath == null) { packagePath = ""; } return packagePath.split("\\s*[,:;]\\s*"); }  @Override void init(ServletConfig config); @Override ServletConfig getServletConfig(); @Override void service(ServletRequest req, ServletResponse res); @Override String getServletInfo(); @Override void destroy(); }
SimpleFlipBootstrapServlet extends HttpServlet { protected String[] getPackagesToSearch(String packagePath) { if (packagePath == null) { packagePath = ""; } return packagePath.split("\\s*[,:;]\\s*"); }  @Override void init(ServletConfig config); @Override ServletConfig getServletConfig(); @Override void service(ServletRequest req, ServletResponse res); @Override String getServletInfo(); @Override void destroy(); static final String PACKAGE_PATH; }