@Test public void testDivide() { calculator.add(10).divide(2); assertThat(calculator.value(), equalTo(5.0)); }
public Calculator divide(double value) { state = state / value; return this; }
Calculator { public Calculator divide(double value) { state = state / value; return this; } }
Calculator { public Calculator divide(double value) { state = state / value; return this; }  }
Calculator { public Calculator divide(double value) { state = state / value; return this; }  Calculator add(double value); Calculator subtract(double value); Calculator multiply(double value); Calculator divide(double value); Calculator divideWithException(double value); void resetCalc(); double value(); }
Calculator { public Calculator divide(double value) { state = state / value; return this; }  Calculator add(double value); Calculator subtract(double value); Calculator multiply(double value); Calculator divide(double value); Calculator divideWithException(double value); void resetCalc(); double value();  }