use of de.symeda.sormas.ui.campaign.campaigndata.CampaignFormBuilder in project SORMAS-Project by hzi-braunschweig.
the class ExpressionProcessorTest method setup.
@Before
public void setup() throws IOException {
GridLayout campaignFormLayout = new GridLayout(12, 1);
ObjectMapper objectMapper = new ObjectMapper();
List<CampaignFormElement> campaignFormElements = createData(objectMapper, this.getClass().getResourceAsStream("/campaign/expressions/formelements.json"), CampaignFormElement.class);
List<CampaignFormDataEntry> campaignFormDataEntries = createData(objectMapper, this.getClass().getResourceAsStream("/campaign/expressions/formvalues.json"), CampaignFormDataEntry.class);
campaignFormBuilder = new CampaignFormBuilder(campaignFormElements, campaignFormDataEntries, campaignFormLayout, Collections.emptyList());
campaignFormBuilder.buildForm();
expressionProcessor = new ExpressionProcessor(campaignFormBuilder);
}
Aggregations