()
| 343 | } |
| 344 | |
| 345 | @Test |
| 346 | public void createNewTree() throws Exception { |
| 347 | setupStorage(true, true); |
| 348 | final Tree tree = new Tree(); |
| 349 | tree.setName("New Tree"); |
| 350 | final int tree_id = tree.createNewTree(storage.getTSDB()) |
| 351 | .joinUninterruptibly(); |
| 352 | assertEquals(3, tree_id); |
| 353 | assertEquals(5, storage.numRows(TREE_TABLE)); |
| 354 | assertEquals(1, storage.numColumns(TREE_TABLE, new byte[] { 0, 3 })); |
| 355 | } |
| 356 | |
| 357 | @Test |
| 358 | public void createNewFirstTree() throws Exception { |
nothing calls this directly
no test coverage detected