use of org.guvnor.structure.server.config.ConfigGroup in project drools-wb by kiegroup.
the class WorkbenchConfigurationHelperTest method testWorkitemDefinitions.
@Test
public void testWorkitemDefinitions() throws Exception {
ConfigGroup group = workbenchConfigurationHelper.getWorkItemElementDefinitions();
assertEquals(ConfigType.EDITOR, group.getType());
assertEquals(WorkItemsEditorService.WORK_ITEMS_EDITOR_SETTINGS, group.getName());
assertEquals("", group.getDescription());
assertEquals(6, group.getItems().size());
assertEquals("\"customEditor\" : \"true\"", group.getConfigItemValue(WorkItemsEditorService.WORK_ITEMS_EDITOR_SETTINGS_CUSTOM_EDITOR));
assertEquals("\"parameterValues\" : [\n" + " \"MyFirstParam\" : \"A,B,C\", \n" + " \"MySecondParam\" : \"X,Y,Z\"\n" + "]", group.getConfigItemValue(WorkItemsEditorService.WORK_ITEMS_EDITOR_SETTINGS_PARAMETER_VALUES));
}
Aggregations