use of org.camunda.bpm.dmn.engine.impl.spi.type.DmnDataTypeTransformerRegistry in project camunda-engine-dmn by camunda.
the class DataTypeTransformerIntegrationTest method getDmnEngineConfiguration.
@Override
public DmnEngineConfiguration getDmnEngineConfiguration() {
DefaultDmnEngineConfiguration configuration = new DefaultDmnEngineConfiguration();
dataTypeTransformerMock = mock(DmnDataTypeTransformer.class);
when(dataTypeTransformerMock.transform(any())).thenReturn(TRANSFORMED_VALUE);
DmnDataTypeTransformerRegistry dataTypeTransformerRegistry = mock(DmnDataTypeTransformerRegistry.class);
when(dataTypeTransformerRegistry.getTransformer(anyString())).thenReturn(dataTypeTransformerMock);
configuration.getTransformer().setDataTypeTransformerRegistry(dataTypeTransformerRegistry);
return configuration;
}
Aggregations