MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / serialize

Method serialize

test/tree/TestTree.java:126–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

serializeToStringMethod · 0.95
buildTestTreeMethod · 0.95
containsMethod · 0.80

Tested by

no test coverage detected