@Deployment public void testRenderStartForm() { ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().singleResult(); String renderedForm = (String) formService.getRenderedStartForm(processDefinition.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testRenderStartForm.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testRenderDateField() { ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().singleResult(); String renderedForm = (String) formService.getRenderedStartForm(processDefinition.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testRenderDateField.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testBusinessKey() { ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().singleResult(); String renderedForm = (String) formService.getRenderedStartForm(processDefinition.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testBusinessKey.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testRenderDateFieldWithPattern() { ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().singleResult(); String renderedForm = (String) formService.getRenderedStartForm(processDefinition.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testRenderDateFieldWithPattern.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testLegacyFormPropertySupportReadOnly() { runtimeService.startProcessInstanceByKey("HtmlFormEngineTest.testLegacyFormPropertySupportReadOnly"); Task t = taskService.createTaskQuery() .singleResult(); String renderedForm = (String) formService.getRenderedTaskForm(t.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testLegacyFormPropertySupportReadOnly.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testRenderTaskForm() { runtimeService.startProcessInstanceByKey("HtmlFormEngineTest.testRenderTaskForm"); Task t = taskService.createTaskQuery() .singleResult(); String renderedForm = (String) formService.getRenderedTaskForm(t.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testRenderTaskForm.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testRenderEnumField() { runtimeService.startProcessInstanceByKey("HtmlFormEngineTest.testRenderEnumField"); Task t = taskService.createTaskQuery() .singleResult(); String renderedForm = (String) formService.getRenderedTaskForm(t.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testRenderEnumField.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testLegacyFormPropertySupport() { runtimeService.startProcessInstanceByKey("HtmlFormEngineTest.testLegacyFormPropertySupport"); Task t = taskService.createTaskQuery() .singleResult(); String renderedForm = (String) formService.getRenderedTaskForm(t.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testLegacyFormPropertySupport.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testLegacyFormPropertySupportRequired() { runtimeService.startProcessInstanceByKey("HtmlFormEngineTest.testLegacyFormPropertySupportRequired"); Task t = taskService.createTaskQuery() .singleResult(); String renderedForm = (String) formService.getRenderedTaskForm(t.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testLegacyFormPropertySupportRequired.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testRenderStartForm() { ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().singleResult(); String renderedForm = (String) formService.getRenderedStartForm(processDefinition.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testRenderStartForm.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testRenderDateField() { ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().singleResult(); String renderedForm = (String) formService.getRenderedStartForm(processDefinition.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testRenderDateField.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testRenderDateFieldWithPattern() { ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().singleResult(); String renderedForm = (String) formService.getRenderedStartForm(processDefinition.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testRenderDateFieldWithPattern.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testBusinessKey() { ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().singleResult(); String renderedForm = (String) formService.getRenderedStartForm(processDefinition.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testBusinessKey.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testLegacyFormPropertySupportRequired() { runtimeService.startProcessInstanceByKey("HtmlFormEngineTest.testLegacyFormPropertySupportRequired"); Task t = taskService.createTaskQuery() .singleResult(); String renderedForm = (String) formService.getRenderedTaskForm(t.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testLegacyFormPropertySupportRequired.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testRenderEnumField() { runtimeService.startProcessInstanceByKey("HtmlFormEngineTest.testRenderEnumField"); Task t = taskService.createTaskQuery() .singleResult(); String renderedForm = (String) formService.getRenderedTaskForm(t.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testRenderEnumField.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testRenderTaskForm() { runtimeService.startProcessInstanceByKey("HtmlFormEngineTest.testRenderTaskForm"); Task t = taskService.createTaskQuery() .singleResult(); String renderedForm = (String) formService.getRenderedTaskForm(t.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testRenderTaskForm.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testLegacyFormPropertySupport() { runtimeService.startProcessInstanceByKey("HtmlFormEngineTest.testLegacyFormPropertySupport"); Task t = taskService.createTaskQuery() .singleResult(); String renderedForm = (String) formService.getRenderedTaskForm(t.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testLegacyFormPropertySupport.html"); assertHtmlEquals(expectedForm, renderedForm); }
@Deployment public void testLegacyFormPropertySupportReadOnly() { runtimeService.startProcessInstanceByKey("HtmlFormEngineTest.testLegacyFormPropertySupportReadOnly"); Task t = taskService.createTaskQuery() .singleResult(); String renderedForm = (String) formService.getRenderedTaskForm(t.getId()); String expectedForm = IoUtil.readFileAsString("org/camunda/bpm/engine/test/api/form/HtmlFormEngineTest.testLegacyFormPropertySupportReadOnly.html"); assertHtmlEquals(expectedForm, renderedForm); }