Пример #1
0
 @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());
 }
Пример #2
0
 @Test(expected = IllegalArgumentException.class)
 public void storeNewEmpty() throws Exception {
   meta = new TSMeta("");
   meta.storeNew(tsdb);
 }