Search in sources :

Example 6 with DocumentationOutput

use of org.kie.workbench.common.stunner.core.documentation.model.DocumentationOutput in project kie-wb-common by kiegroup.

the class ClientBPMNDocumentationServiceTest method buildDocumentation.

@Test
public void buildDocumentation() {
    final HTMLDocumentationTemplate documentationTemplate = tested.getDocumentationTemplate();
    final BPMNDocumentation bpmnDocumentation = tested.processDocumentation(diagram);
    final DocumentationOutput documentationOutput = tested.buildDocumentation(documentationTemplate, bpmnDocumentation);
    assertEquals(RENDERED_DOC, documentationOutput.getValue());
}
Also used : DocumentationOutput(org.kie.workbench.common.stunner.core.documentation.model.DocumentationOutput) HTMLDocumentationTemplate(org.kie.workbench.common.stunner.core.documentation.model.HTMLDocumentationTemplate) BPMNDocumentation(org.kie.workbench.common.stunner.bpmn.documentation.model.BPMNDocumentation) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 DocumentationOutput (org.kie.workbench.common.stunner.core.documentation.model.DocumentationOutput)6 HTMLDocumentationTemplate (org.kie.workbench.common.stunner.core.documentation.model.HTMLDocumentationTemplate)3 BPMNDocumentation (org.kie.workbench.common.stunner.bpmn.documentation.model.BPMNDocumentation)1