@Test public void divByZero(){ double resultDiv = mCalculator.division(16d, 0d); assertThat(resultDiv, is(equalTo(Double.POSITIVE_INFINITY))); }
public double division(double firstOperand, double secondOperand) { return firstOperand / secondOperand; }
Calculator { public double division(double firstOperand, double secondOperand) { return firstOperand / secondOperand; } }
Calculator { public double division(double firstOperand, double secondOperand) { return firstOperand / secondOperand; }  }
Calculator { public double division(double firstOperand, double secondOperand) { return firstOperand / secondOperand; }  double addition(double firstOperand, double secondOperand); double subtraction(double firstOperand, double secondOperand); double division(double firstOperand, double secondOperand); double multiplication(double firstOperand, double secondOperand); }
Calculator { public double division(double firstOperand, double secondOperand) { return firstOperand / secondOperand; }  double addition(double firstOperand, double secondOperand); double subtraction(double firstOperand, double secondOperand); double division(double firstOperand, double secondOperand); double multiplication(double firstOperand, double secondOperand);  }