@Test public void getUnits_shouldReturnMbyteUnits_whenASpecificationIsDefinedWithAUnitsOfMeasurementMbyteString() { final Specification specification = specificationWithUnit("Mbyte"); assertThat(specification.getUnits(), is(BYTE.multiply(1L << 20))); }
Unit<?> getUnits() { return unit; }
Specification { Unit<?> getUnits() { return unit; } }
Specification { Unit<?> getUnits() { return unit; } Specification(String name, boolean optional, String description,
                String semantics, String units, String mBeanName,
                String mBeanAttributeName, String mBeanCompositeDataItem); }
Specification { Unit<?> getUnits() { return unit; } Specification(String name, boolean optional, String description,
                String semantics, String units, String mBeanName,
                String mBeanAttributeName, String mBeanCompositeDataItem);  }
Specification { Unit<?> getUnits() { return unit; } Specification(String name, boolean optional, String description,
                String semantics, String units, String mBeanName,
                String mBeanAttributeName, String mBeanCompositeDataItem);   }