(String content)
| 47 | } |
| 48 | |
| 49 | private Pair<Integer, Double> parse(String content) throws ParseException { |
| 50 | JsonObject obj = new JsonObject(content); |
| 51 | JsonArray array = obj.getJSONArray("lineChartDetails"); |
| 52 | JsonObject chart = (JsonObject) array.get(0); |
| 53 | |
| 54 | return new Pair<Integer, Double>(chart.getInt("accessNumberSum"), chart.getDouble("successRatio")); |
| 55 | } |
| 56 | |
| 57 | @Test |
| 58 | public void test() { |
no test coverage detected