Skip to content

Commit e2a6307

Browse files
committed
fix unit test
1 parent ad49adb commit e2a6307

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

dashjoin-core/src/test/java/org/dashjoin/service/ModelTest.java

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,15 @@ void checkLayout(JsonNode tree) {
153153
}
154154

155155
for (Entry<String, JsonNode> e : IteratorUtils.toList(tree.fields())) {
156-
// System.out.println(e);
157-
Assertions.assertTrue(Arrays
158-
.asList("ID", "widget", "text", "title", "pageLayout", "readOnly", "tooltip", "icon",
159-
"icons", "href", "children", "database", "table", "schema", "chart", "query",
160-
"arguments", "fxHide", "display", "prop", "createSchema", "columns", "roles", "if",
161-
"context", "properties", "deleteConfirmation", "print", "navigate", "markdown",
162-
"layout", "style", "class", /* schema info in config.json */ "name", "parent",
163-
/* gridster stuff */ "x", "y", "rows", "cols",
164-
/* redraw container */ "redrawInterval", "expression", "html", "script", "hideframe",
165-
"clearCache", "card", "size", "cached", "onChat", "uploadEnabled", "onRender")
166-
.contains(e.getKey()));
156+
System.out.println(e);
157+
Assertions.assertTrue(Arrays.asList("ID", "widget", "text", "title", "pageLayout", "readOnly",
158+
"tooltip", "icon", "icons", "href", "children", "database", "table", "schema", "chart",
159+
"query", "arguments", "fxHide", "display", "prop", "createSchema", "columns", "roles",
160+
"if", "context", "properties", "deleteConfirmation", "print", "navigate", "markdown",
161+
"layout", "style", "class", /* schema info in config.json */ "name", "parent",
162+
/* gridster stuff */ "x", "y", "rows", "cols", /* redraw container */ "redrawInterval",
163+
"expression", "html", "script", "hideframe", "clearCache", "card", "size", "cached",
164+
"onChat", "uploadEnabled", "onRender", "hideColumns", "foreach").contains(e.getKey()));
167165
if (e.getKey().equals("url"))
168166
Assertions.assertTrue(e.getValue() instanceof TextNode);
169167
}

0 commit comments

Comments
 (0)