use of org.camunda.bpm.dmn.engine.impl.spi.type.DmnDataTypeTransformer in project camunda-engine-dmn by camunda.
the class DmnDataTypeTransformerTest method invalidDoubleValueForLongType.
@Test
public void invalidDoubleValueForLongType() {
DmnDataTypeTransformer typeTransformer = registry.getTransformer("long");
thrown.expect(IllegalArgumentException.class);
typeTransformer.transform(4.2);
}
use of org.camunda.bpm.dmn.engine.impl.spi.type.DmnDataTypeTransformer in project camunda-engine-dmn by camunda.
the class DmnDataTypeTransformerTest method invalidLongValueForIntegerType.
@Test
public void invalidLongValueForIntegerType() {
DmnDataTypeTransformer typeTransformer = registry.getTransformer("integer");
thrown.expect(IllegalArgumentException.class);
typeTransformer.transform(Long.MAX_VALUE);
}
Aggregations