()
| 55 | } |
| 56 | |
| 57 | @Test |
| 58 | public void test() { |
| 59 | List<Item> items = new ArrayList<Item>(); |
| 60 | for (int i = 1; i < 711; i++) { |
| 61 | try { |
| 62 | String url1 = build711Url(i); |
| 63 | String url2 = build720Url(i); |
| 64 | |
| 65 | Pair<Integer, Double> pair1 = parse(fetchContent(url1)); |
| 66 | Pair<Integer, Double> pair2 = parse(fetchContent(url2)); |
| 67 | |
| 68 | Item item = new Item(); |
| 69 | |
| 70 | item.setId(i); |
| 71 | item.setCount1(pair1.getKey()); |
| 72 | item.setAvg1(pair1.getValue()); |
| 73 | item.setCount2(pair2.getKey()); |
| 74 | item.setAvg2(pair2.getValue()); |
| 75 | |
| 76 | items.add(item); |
| 77 | System.out.print(item.toString()); |
| 78 | } catch (Exception e) { |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | private class Item { |
| 84 | private int m_id; |
no test coverage detected