@Test @Ignore public final void shouldReturnNonEmptyConversionsSetUsingSimpleOneDirectionalTraverseWithCycle() { final Entity mToDm = mockUnitConversionItem(BigDecimal.ONE, "m", BigDecimal.valueOf(10L), "dm"); final Entity dmToCm = mockUnitConversionItem(BigDecimal.ONE, "dm", BigDecimal.valueOf(10L), "cm"); final Entity cmToMm = mockUnitConversionItem(BigDecimal.ONE, "cm", BigDecimal.valueOf(10L), "mm"); final Entity mmToM = mockUnitConversionItem(BigDecimal.ONE, "mm", new BigDecimal("0.001"), "m"); stubGetAll(Lists.newArrayList(mToDm, dmToCm, cmToMm, mmToM)); final PossibleUnitConversions result = unitConversionService.getPossibleConversions("m"); assertEquals(3, result.asUnitToConversionMap().size()); assertBigDecimalEquals(BigDecimal.valueOf(10L), result.convertTo(BigDecimal.ONE, "dm")); 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);  }