()
| 234 | } |
| 235 | |
| 236 | @Test |
| 237 | public void storeRule() throws Exception { |
| 238 | setupStorage(); |
| 239 | final TreeRule rule = new TreeRule(1); |
| 240 | rule.setLevel(1); |
| 241 | rule.setOrder(0); |
| 242 | rule.setType(TreeRuleType.METRIC); |
| 243 | rule.setNotes("Just some notes"); |
| 244 | assertTrue(rule.syncToStorage(storage.getTSDB(), false).joinUninterruptibly()); |
| 245 | assertEquals(3, storage.numColumns(TREE_TABLE, new byte[] { 0, 1 })); |
| 246 | } |
| 247 | |
| 248 | @Test |
| 249 | public void storeRuleMege() throws Exception { |
nothing calls this directly
no test coverage detected