@Test public void testValueGetter() { final double value = 10; Measurement measurement = new Measurement(value, MeasurementUnit.METER); assertThat(measurement.getValue(), is(value)); }
public double getValue() { return mValue; }
Measurement { public double getValue() { return mValue; } }
Measurement { public double getValue() { return mValue; } Measurement(double value, MeasurementUnit unit); }
Measurement { public double getValue() { return mValue; } Measurement(double value, MeasurementUnit unit); double getValue(); MeasurementUnit getUnit(); boolean convert(MeasurementUnit to); Measurement getConverted(MeasurementUnit to); }
Measurement { public double getValue() { return mValue; } Measurement(double value, MeasurementUnit unit); double getValue(); MeasurementUnit getUnit(); boolean convert(MeasurementUnit to); Measurement getConverted(MeasurementUnit to);  }