Search in sources :

Example 6 with ConfigGroup

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));
}
Also used : ConfigGroup(org.guvnor.structure.server.config.ConfigGroup) Test(org.junit.Test)

Aggregations

ConfigGroup (org.guvnor.structure.server.config.ConfigGroup)6 ConfigItem (org.guvnor.structure.server.config.ConfigItem)3 HashMap (java.util.HashMap)2 ArrayList (java.util.ArrayList)1 WorkDefinition (org.jbpm.process.core.WorkDefinition)1 Test (org.junit.Test)1