@Test public void storeNew() throws Exception { meta = new TSMeta(new byte[] {0, 0, 1, 0, 0, 1, 0, 0, 1}, 1357300800000L); meta.setDisplayName("New DN"); meta.storeNew(tsdb); assertEquals("New DN", meta.getDisplayName()); }
@Test(expected = IllegalArgumentException.class) public void storeNewEmpty() throws Exception { meta = new TSMeta(""); meta.storeNew(tsdb); }