()
| 190 | } |
| 191 | |
| 192 | @Test |
| 193 | public void fetchRule() throws Exception { |
| 194 | setupStorage(); |
| 195 | final TreeRule rule = TreeRule.fetchRule(storage.getTSDB(), 1, 2, 1) |
| 196 | .joinUninterruptibly(); |
| 197 | assertNotNull(rule); |
| 198 | assertEquals(1, rule.getTreeId()); |
| 199 | assertEquals(2, rule.getLevel()); |
| 200 | assertEquals(1, rule.getOrder()); |
| 201 | assertEquals("Host owner", rule.getDescription()); |
| 202 | } |
| 203 | |
| 204 | @Test |
| 205 | public void fetchRuleDoesNotExist() throws Exception { |
nothing calls this directly
no test coverage detected