--- android/TrainInfoService/src/dk/thoerup/traininfoservice/TestServlet.java 2010/05/19 09:53:25 739 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/TestServlet.java 2010/05/19 11:14:33 740 @@ -49,9 +49,28 @@ db.getByName(search); } + } + + void testFindFavorites(int count) throws SQLException { + Random r = new Random(); + + StationDAO db = new StationDAO(); + + for (int i=0; i0) + sb.append(','); + sb.append(r.nextInt(400)); + } + sb.append(')'); - + db.getByList(sb.toString()); + } } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { @@ -69,6 +88,8 @@ testFindName(count); } else if ( test.equals("nearest") ) { testFindNearest(count); + } else if ( test.equals("favorites") ) { + testFindFavorites(count); } else { throw new ServletException("No parameter test"); }