()
| 137 | } |
| 138 | |
| 139 | @Test |
| 140 | public void ctorNullHeaders() throws Exception { |
| 141 | final TSQuery query = new TSQuery(); |
| 142 | query.setStart("1h-ago"); |
| 143 | final QueryStats stats = new QueryStats(remote, query, null); |
| 144 | assertNotNull(stats); |
| 145 | final Map<String, Object> map = QueryStats.getRunningAndCompleteStats(); |
| 146 | assertNotNull(map); |
| 147 | assertEquals(1, ((List<Object>)map.get("running")).size()); |
| 148 | assertEquals(0, ((Collection<QueryStats>)map.get("completed")).size()); |
| 149 | } |
| 150 | |
| 151 | @Test |
| 152 | public void testHashCodeandEquals() throws Exception { |
nothing calls this directly
no test coverage detected