public void testLesser() { simulateDelay(); if (9 != BasicMath.lesser(9, 12)) { throw new MathException("Cant find lesser!"); } }
public void testGreater() { simulateDelay(); if (12 != BasicMath.greater(9, 12)) { throw new MathException("Cant find greater!"); } }
public void testDivideWithRemainder() { simulateDelay(); if (4.5 != BasicMath.divide(9, 2)) { throw new MathException("Cant divide!"); } }
public void testMultiply() { simulateDelay(); if (6 != BasicMath.multiply(3, 2)) { throw new MathException("Cant multiply!"); } }
public void testSubtract() { simulateDelay(); if (3 != BasicMath.subtract(5, 2)) { throw new MathException("Cant subtract!"); } }
public void testAdd() { simulateDelay(); if (5 != BasicMath.add(3, 2)) { throw new MathException("Cant add!"); } }