@Test public void shouldTransformRawInputValuesCorrectlyBasedOnTheirUnits() { assertThat(new Volume(25, BASE).asAbsolute()).isEqualTo(25); assertThat(new Volume(3, NANO_LOT).asAbsolute()).isEqualTo(300); assertThat(new Volume(8, MICRO_LOT).asAbsolute()).isEqualTo(8000); assertThat(new Volume(2, MINI_LOT).asAbsolute()).isEqualTo(20000); assertThat(new Volume(9, LOT).asAbsolute()).isEqualTo(900000); assertThat(new Volume(581, NANO_LOT).asAbsolute()).isEqualTo(58100); assertThat(new Volume(-7, MICRO_LOT).asAbsolute()).isEqualTo(-7000); assertThat(new Volume(0, LOT).asAbsolute()).isEqualTo(0); }
public long asAbsolute() { return volume; }
Volume { public long asAbsolute() { return volume; } }
Volume { public long asAbsolute() { return volume; } Volume(final long volume, final VolumeUnit unit); }
Volume { public long asAbsolute() { return volume; } Volume(final long volume, final VolumeUnit unit); long asAbsolute(); double asLot(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
Volume { public long asAbsolute() { return volume; } Volume(final long volume, final VolumeUnit unit); long asAbsolute(); double asLot(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }