Search in sources :

Example 1 with DmnDataTypeTransformerRegistry

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;
}
Also used : DmnDataTypeTransformerRegistry(org.camunda.bpm.dmn.engine.impl.spi.type.DmnDataTypeTransformerRegistry) DefaultDmnEngineConfiguration(org.camunda.bpm.dmn.engine.impl.DefaultDmnEngineConfiguration) DmnDataTypeTransformer(org.camunda.bpm.dmn.engine.impl.spi.type.DmnDataTypeTransformer)

Aggregations

DefaultDmnEngineConfiguration (org.camunda.bpm.dmn.engine.impl.DefaultDmnEngineConfiguration)1 DmnDataTypeTransformer (org.camunda.bpm.dmn.engine.impl.spi.type.DmnDataTypeTransformer)1 DmnDataTypeTransformerRegistry (org.camunda.bpm.dmn.engine.impl.spi.type.DmnDataTypeTransformerRegistry)1