()
| 247 | } |
| 248 | |
| 249 | @Test |
| 250 | public void storeNew() throws Exception { |
| 251 | meta = new UIDMeta(UniqueIdType.METRIC, new byte[] { 0, 0, 1 }, "sys.cpu.1"); |
| 252 | meta.setDisplayName("System CPU"); |
| 253 | meta.storeNew(tsdb).joinUninterruptibly(); |
| 254 | meta = JSON.parseToObject(storage.getColumn(UID_TABLE, new byte[] { 0, 0, 1 }, |
| 255 | NAME_FAMILY, |
| 256 | "metric_meta".getBytes(MockBase.ASCII())), UIDMeta.class); |
| 257 | assertEquals("System CPU", meta.getDisplayName()); |
| 258 | } |
| 259 | |
| 260 | @Test (expected = IllegalArgumentException.class) |
| 261 | public void storeNewNoName() throws Exception { |
no test coverage detected