@Test @Ignore public final void shouldReturnNonEmptyConversionsSetUsingSimpleBiDirectionalTraverse() { final Entity kmToM = mockUnitConversionItem(BigDecimal.ONE, "km", BigDecimal.valueOf(1000L), "m"); final Entity mToDm = mockUnitConversionItem(BigDecimal.ONE, "m", BigDecimal.valueOf(100L), "cm"); final Entity cmToMm = mockUnitConversionItem(BigDecimal.ONE, "cm", BigDecimal.valueOf(10L), "mm"); stubGetAll(Lists.newArrayList(mToDm, kmToM, cmToMm)); final PossibleUnitConversions result = unitConversionService.getPossibleConversions("m"); assertEquals(3, result.asUnitToConversionMap().size()); assertBigDecimalEquals(new BigDecimal("0.001"), result.convertTo(BigDecimal.ONE, "km")); assertBigDecimalEquals(BigDecimal.valueOf(100L), result.convertTo(BigDecimal.ONE, "cm")); assertBigDecimalEquals(BigDecimal.valueOf(1000L), result.convertTo(BigDecimal.ONE, "mm")); }
@Override public PossibleUnitConversions getPossibleConversions(final String unit) { return getPossibleConversions(unit, unitConversionModelService.find(unit)); }
UnitConversionServiceImpl implements UnitConversionService { @Override public PossibleUnitConversions getPossibleConversions(final String unit) { return getPossibleConversions(unit, unitConversionModelService.find(unit)); } }
UnitConversionServiceImpl implements UnitConversionService { @Override public PossibleUnitConversions getPossibleConversions(final String unit) { return getPossibleConversions(unit, unitConversionModelService.find(unit)); }  }
UnitConversionServiceImpl implements UnitConversionService { @Override public PossibleUnitConversions getPossibleConversions(final String unit) { return getPossibleConversions(unit, unitConversionModelService.find(unit)); }  @Override PossibleUnitConversions getPossibleConversions(final String unit); @Override PossibleUnitConversions getPossibleConversions(final String unit, final CustomRestriction customRestriction); }
UnitConversionServiceImpl implements UnitConversionService { @Override public PossibleUnitConversions getPossibleConversions(final String unit) { return getPossibleConversions(unit, unitConversionModelService.find(unit)); }  @Override PossibleUnitConversions getPossibleConversions(final String unit); @Override PossibleUnitConversions getPossibleConversions(final String unit, final CustomRestriction customRestriction);  }