// do nothing, correct behaviour
}
}
public void testConvertLengthFromMMWithValidUnits() {
DILengthFunction function = getFunction();
final double lengthInMm = 15;
final double lengthInCm = 15 * 0.1;
final double lengthInIn = 15 * 0.0393701;
final double lengthInPt = 15 * 2.845358;
final double lengthInPc = 15 * 0.2371132;
double result = function.convertLengthFromMm(lengthInMm,
DILengthFunction.MM);
assertTrue(lengthInMm == result);
result = function.convertLengthFromMm(lengthInMm,
DILengthFunction.CM);
assertTrue(lengthInCm == result);
result = function.convertLengthFromMm(lengthInMm,
DILengthFunction.IN);
assertTrue(lengthInIn == result);
result = function.convertLengthFromMm(lengthInMm,
DILengthFunction.PT);
assertTrue(lengthInPt == result);
result = function.convertLengthFromMm(lengthInMm,
DILengthFunction.PC);
assertTrue(lengthInPc == result);
}