@Test @Ignore public final void shouldReturnNonEmptyConversionsSetUsingSimpleBiDirectionalTraverseWithCycle() { final Entity kmToM = mockUnitConversionItem(BigDecimal.ONE, "km", BigDecimal.valueOf(1000L), "m"); final Entity mToDm = mockUnitConversionItem(BigDecimal.ONE, "m", BigDecimal.valueOf(10L), "dm"); final Entity kmToMm = mockUnitConversionItem(BigDecimal.ONE, "km", BigDecimal.valueOf(1000000L), "mm"); final Entity mmToDm = mockUnitConversionItem(BigDecimal.valueOf(100L), "mm", BigDecimal.ONE, "dm"); final Entity dmToM = mockUnitConversionItem(BigDecimal.valueOf(10L), "dm", BigDecimal.ONE, "m"); stubGetAll(Lists.newArrayList(mToDm, kmToM, kmToMm, mmToDm, dmToM)); final PossibleUnitConversions result = unitConversionService.getPossibleConversions("m"); assertEquals(3, result.asUnitToConversionMap().size()); assertBigDecimalEquals(new BigDecimal("0.001"), result.convertTo(BigDecimal.ONE, "km")); assertBigDecimalEquals(BigDecimal.valueOf(10L), result.convertTo(BigDecimal.ONE, "dm")); 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);  }