@Test public void initalValuueIsSameAsInputTest() { long anyInput = 1000; AddMashine sut = new AddMashine(anyInput); assertThat(sut.getSum(),is(anyInput)); }
public Long getSum() { return value; }
AddMashine { public Long getSum() { return value; } }
AddMashine { public Long getSum() { return value; } AddMashine(Long initialValue); }
AddMashine { public Long getSum() { return value; } AddMashine(Long initialValue); void add(Long value); void sub(Long value); Long getSum(); BigDecimal getAverage(); }
AddMashine { public Long getSum() { return value; } AddMashine(Long initialValue); void add(Long value); void sub(Long value); Long getSum(); BigDecimal getAverage();  }