12 |
|
|
13 |
public class TestServlet extends HttpServlet { |
public class TestServlet extends HttpServlet { |
14 |
private static final long serialVersionUID = 1L; |
private static final long serialVersionUID = 1L; |
15 |
|
|
16 |
|
Random r = new Random(); |
17 |
|
|
18 |
//South-West corner= 54.0, 7.0 |
//South-West corner= 54.0, 7.0 |
19 |
//North-East corner= 58.0, 13.0 |
//North-East corner= 58.0, 13.0 |
20 |
//Latitude span=4.0 |
//Latitude span=4.0 |
21 |
//Longitude span=6.0 |
//Longitude span=6.0 |
22 |
void testFindNearest(int count) throws SQLException { |
void testFindNearest(int count) throws SQLException { |
|
Random r = new Random(); |
|
23 |
|
|
24 |
StationDAO db = new StationDAO(); |
StationDAO db = new StationDAO(); |
25 |
|
|
35 |
} |
} |
36 |
|
|
37 |
void testFindName(int count) throws SQLException { |
void testFindName(int count) throws SQLException { |
|
Random r = new Random(); |
|
38 |
|
|
39 |
StationDAO db = new StationDAO(); |
StationDAO db = new StationDAO(); |
40 |
|
|
52 |
} |
} |
53 |
|
|
54 |
void testFindFavorites(int count) throws SQLException { |
void testFindFavorites(int count) throws SQLException { |
|
Random r = new Random(); |
|
55 |
|
|
56 |
StationDAO db = new StationDAO(); |
StationDAO db = new StationDAO(); |
57 |
|
|