Package de.hybris.platform.test
Class CoreAlgorithmsTest
java.lang.Object
de.hybris.platform.test.CoreAlgorithmsTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doubleoldRound(double value, int digits) protected doubleround(double value, int digits, boolean legacyAPI) voidvoidvoidvoidvoidvoidvoidprotected voidtestRoundWithDouble4LegacyTesting(boolean legacyMode, boolean legacyAPI)
-
Constructor Details
-
CoreAlgorithmsTest
public CoreAlgorithmsTest()
-
-
Method Details
-
testRoundHalfUp
public void testRoundHalfUp() -
testRoundHalfUpNegative
public void testRoundHalfUpNegative() -
testConvertAndRound
public void testConvertAndRound() -
testRoundNaN
public void testRoundNaN() -
testLegacyRoundingMode
public void testLegacyRoundingMode() -
shouldThrowExceptionIfSourceFactorIsZeroWhenConverting
public void shouldThrowExceptionIfSourceFactorIsZeroWhenConverting() -
shouldThrowExceptionIfTargetFactorIsZeroWhenConverting
public void shouldThrowExceptionIfTargetFactorIsZeroWhenConverting() -
testRoundWithDouble4LegacyTesting
protected void testRoundWithDouble4LegacyTesting(boolean legacyMode, boolean legacyAPI) -
round
protected double round(double value, int digits, boolean legacyAPI) -
oldRound
protected double oldRound(double value, int digits)
-