()
| 79 | } |
| 80 | |
| 81 | @Test |
| 82 | public void copyConstructor() { |
| 83 | final Tree tree = buildTestTree(); |
| 84 | tree.setStrictMatch(true); |
| 85 | final Tree copy = new Tree(tree); |
| 86 | |
| 87 | assertEquals(1, copy.getTreeId()); |
| 88 | assertEquals(1356998400L, copy.getCreated()); |
| 89 | assertEquals("My Description", copy.getDescription()); |
| 90 | assertEquals("Test Tree", copy.getName()); |
| 91 | assertEquals("Details", copy.getNotes()); |
| 92 | assertTrue(copy.getStrictMatch()); |
| 93 | assertTrue(copy.getEnabled()); |
| 94 | assertNull(copy.getCollisions()); |
| 95 | assertNull(copy.getNotMatched()); |
| 96 | assertNotNull(copy.getRules()); |
| 97 | assertTrue(copy.getRules() != tree.getRules()); |
| 98 | } |
| 99 | |
| 100 | @Test |
| 101 | public void copyChanges() throws Exception { |
nothing calls this directly
no test coverage detected