()
| 355 | } |
| 356 | |
| 357 | @Test |
| 358 | public void createNewFirstTree() throws Exception { |
| 359 | setupStorage(true, true); |
| 360 | storage.flushStorage(); |
| 361 | final Tree tree = new Tree(); |
| 362 | tree.setName("New Tree"); |
| 363 | final int tree_id = tree.createNewTree(storage.getTSDB()) |
| 364 | .joinUninterruptibly(); |
| 365 | assertEquals(1, tree_id); |
| 366 | assertEquals(1, storage.numRows(TREE_TABLE)); |
| 367 | assertEquals(1, storage.numColumns(TREE_TABLE, new byte[] { 0, 1 })); |
| 368 | } |
| 369 | |
| 370 | @Test (expected = IllegalArgumentException.class) |
| 371 | public void createNewTreeNoChanges() throws Exception { |
nothing calls this directly
no test coverage detected