Search in sources :

Example 1 with ProcessableModel

use of org.kie.workbench.common.forms.dynamic.backend.server.context.generation.dynamic.impl.model.ProcessableModel in project kie-wb-common by kiegroup.

the class ProcessableModelBackendFormRenderingContextManagerTest method getModel.

private ProcessableModel getModel() {
    ProcessableModel newModel = new ProcessableModel();
    newModel.setBigDecimal(new BigDecimal("0.1"));
    newModel.setaFloat(Float.valueOf("0.1"));
    newModel.setBigInteger(new BigInteger("1"));
    newModel.setLocalDate(LocalDate.now());
    newModel.setLocalDateTime(LocalDateTime.now());
    newModel.setLocalTime(LocalTime.now());
    newModel.setOffsetDateTime(OffsetDateTime.now());
    return newModel;
}
Also used : BigInteger(java.math.BigInteger) ProcessableModel(org.kie.workbench.common.forms.dynamic.backend.server.context.generation.dynamic.impl.model.ProcessableModel) BigDecimal(java.math.BigDecimal)

Aggregations

BigDecimal (java.math.BigDecimal)1 BigInteger (java.math.BigInteger)1 ProcessableModel (org.kie.workbench.common.forms.dynamic.backend.server.context.generation.dynamic.impl.model.ProcessableModel)1