()
| 124 | } |
| 125 | |
| 126 | @Test |
| 127 | public void serialize() throws Exception { |
| 128 | final String json = JSON.serializeToString(buildTestTree()); |
| 129 | assertNotNull(json); |
| 130 | assertTrue(json.contains("\"created\":1356998400")); |
| 131 | assertTrue(json.contains("\"name\":\"Test Tree\"")); |
| 132 | assertTrue(json.contains("\"description\":\"My Description\"")); |
| 133 | assertTrue(json.contains("\"enabled\":true")); |
| 134 | } |
| 135 | |
| 136 | @Test |
| 137 | public void deserialize() throws Exception { |
nothing calls this directly
no test coverage detected