diff --git a/src/test/java/tech/units/indriya/AbsQuantityTest.java b/src/test/java/tech/units/indriya/AbsQuantityTest.java index d090083d..53c3c66e 100644 --- a/src/test/java/tech/units/indriya/AbsQuantityTest.java +++ b/src/test/java/tech/units/indriya/AbsQuantityTest.java @@ -36,11 +36,12 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static tech.units.indriya.unit.Units.METRE; +import java.math.BigDecimal; + import javax.measure.Quantity; import javax.measure.format.MeasurementParseException; import javax.measure.quantity.Dimensionless; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import tech.units.indriya.quantity.Quantities; @@ -50,12 +51,10 @@ * */ public class AbsQuantityTest { - private static final Number NULL_NUMBER = null; @Test - @Disabled("TODO Fix https://github.com/unitsofmeasurement/indriya/issues/325") public void testParse() { - assertEquals(Quantities.getQuantity(0.234, CENTI(METRE)), + assertEquals(Quantities.getQuantity(BigDecimal.valueOf(0.234), CENTI(METRE)), AbstractQuantity.parse("0.234 cm")); } diff --git a/src/test/java/tech/units/indriya/quantity/QuantitiesTest.java b/src/test/java/tech/units/indriya/quantity/QuantitiesTest.java index 19818835..e3ba9c2a 100644 --- a/src/test/java/tech/units/indriya/quantity/QuantitiesTest.java +++ b/src/test/java/tech/units/indriya/quantity/QuantitiesTest.java @@ -165,7 +165,7 @@ public void quantityMixedTest() { } @Test - public void testParseNoUnit() { + public void parseNoUnitTest() { assertThrows(IllegalArgumentException.class, () -> { @SuppressWarnings({ "unused" }) Quantity result = Quantities.getQuantity("170").asType(Dimensionless.class);