()
| 155 | } |
| 156 | |
| 157 | @Test |
| 158 | public void getUIDMetaExists() throws Exception { |
| 159 | meta = UIDMeta.getUIDMeta(tsdb, UniqueIdType.METRIC, "000001") |
| 160 | .joinUninterruptibly(); |
| 161 | assertEquals(UniqueIdType.METRIC, meta.getType()); |
| 162 | assertEquals("sys.cpu.0", meta.getName()); |
| 163 | assertEquals("000001", meta.getUID()); |
| 164 | assertEquals("MyNotes", meta.getNotes()); |
| 165 | } |
| 166 | |
| 167 | @Test (expected = NoSuchUniqueId.class) |
| 168 | public void getUIDMetaNoSuch() throws Exception { |
nothing calls this directly
no test coverage detected