true, true).toString());
}
public void testAppendColumnDescriptionJson() {
JsonRenderer r = new JsonRenderer();
ColumnDescription columnDescription = new ColumnDescription("ID", ValueType.BOOLEAN, "LABEL");
assertEquals("{\"id\":\"ID\",\"label\":\"LABEL\",\"type\":\"boolean\",\"pattern\":\"\"}",
r.appendColumnDescriptionJson(
columnDescription, new StringBuilder()).toString());
columnDescription.setPattern("%%%.@@");
assertEquals("{\"id\":\"ID\",\"label\":\"LABEL\",\"type\":\"boolean\",\"pattern\":\"%%%.@@\"}",
r.appendColumnDescriptionJson(
columnDescription, new StringBuilder()).toString());
}