@Test public void annot() { ChartModel cm = new ChartModel(FOO, BAR); cm.addAnnotation("dev1", "of:0000000000000001"); cm.addAnnotation("dev2", "of:0000000000000002"); ObjectNode node = ChartUtils.generateAnnotObjectNode(cm); Assert.assertEquals("wrong results", NODE_AS_STRING, node.toString()); }
public static ObjectNode generateAnnotObjectNode(ChartModel cm) { ObjectNode node = MAPPER.createObjectNode(); for (ChartModel.Annot a : cm.getAnnotations()) { node.put(a.key(), a.valueAsString()); } return node; }
ChartUtils { public static ObjectNode generateAnnotObjectNode(ChartModel cm) { ObjectNode node = MAPPER.createObjectNode(); for (ChartModel.Annot a : cm.getAnnotations()) { node.put(a.key(), a.valueAsString()); } return node; } }
ChartUtils { public static ObjectNode generateAnnotObjectNode(ChartModel cm) { ObjectNode node = MAPPER.createObjectNode(); for (ChartModel.Annot a : cm.getAnnotations()) { node.put(a.key(), a.valueAsString()); } return node; } private  ChartUtils(); }
ChartUtils { public static ObjectNode generateAnnotObjectNode(ChartModel cm) { ObjectNode node = MAPPER.createObjectNode(); for (ChartModel.Annot a : cm.getAnnotations()) { node.put(a.key(), a.valueAsString()); } return node; } private  ChartUtils(); static ArrayNode generateDataPointArrayNode(ChartModel cm); static ObjectNode generateAnnotObjectNode(ChartModel cm); static JsonNode toJsonNode(ChartModel.DataPoint dp, ChartModel cm); }
ChartUtils { public static ObjectNode generateAnnotObjectNode(ChartModel cm) { ObjectNode node = MAPPER.createObjectNode(); for (ChartModel.Annot a : cm.getAnnotations()) { node.put(a.key(), a.valueAsString()); } return node; } private  ChartUtils(); static ArrayNode generateDataPointArrayNode(ChartModel cm); static ObjectNode generateAnnotObjectNode(ChartModel cm); static JsonNode toJsonNode(ChartModel.DataPoint dp, ChartModel cm);  }