Search in sources :

Example 1 with DocumentFieldDefinition

use of org.kie.workbench.common.forms.jbpm.model.authoring.document.definition.DocumentFieldDefinition in project kie-wb-common by kiegroup.

the class DocumentFieldValueProcessorTest method initTest.

@Before
public void initTest() {
    when(uploadedDocumentManager.getFile(anyString())).thenReturn(uploaded);
    when(uploaded.length()).thenReturn(new Long(1024));
    field = new DocumentFieldDefinition();
    field.setBinding("document");
    field.setName("document");
    field.setLabel("document");
    processor = new TestDocumentFieldValueProcessor(uploadedDocumentManager);
}
Also used : DocumentFieldDefinition(org.kie.workbench.common.forms.jbpm.model.authoring.document.definition.DocumentFieldDefinition) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 DocumentFieldDefinition (org.kie.workbench.common.forms.jbpm.model.authoring.document.definition.DocumentFieldDefinition)1