| 231 | } |
| 232 | |
| 233 | @Test |
| 234 | public void getTSMetasSingleSetQuery() throws Exception { |
| 235 | query = new TSUIDQuery(tsdb); |
| 236 | query.setQuery(METRIC_STRING, tags); |
| 237 | final List<TSMeta> tsmetas = query.getTSMetas().joinUninterruptibly(); |
| 238 | assertEquals(1, tsmetas.size()); |
| 239 | assertEquals(METRIC_STRING, tsmetas.get(0).getMetric().getName()); |
| 240 | assertEquals(TAGK_STRING, tsmetas.get(0).getTags().get(0).getName()); |
| 241 | assertEquals(TAGV_STRING, tsmetas.get(0).getTags().get(1).getName()); |
| 242 | } |
| 243 | |
| 244 | @Test |
| 245 | public void getTSMetasMultipleResults() throws Exception { |