()
| 92 | } |
| 93 | |
| 94 | @Test |
| 95 | public void ctor() throws Exception { |
| 96 | final TSQuery query = new TSQuery(); |
| 97 | query.setStart("1h-ago"); |
| 98 | final QueryStats stats = new QueryStats(remote, query, headers); |
| 99 | assertNotNull(stats); |
| 100 | final Map<String, Object> map = QueryStats.getRunningAndCompleteStats(); |
| 101 | assertNotNull(map); |
| 102 | assertEquals(1, ((List<Object>)map.get("running")).size()); |
| 103 | assertEquals(0, ((Collection<QueryStats>)map.get("completed")).size()); |
| 104 | assertSame(headers, stats.getRequestHeaders()); |
| 105 | } |
| 106 | |
| 107 | @Test |
| 108 | public void ctorDuplicate() throws Exception { |
nothing calls this directly
no test coverage detected