Skip to content
This repository was archived by the owner on Sep 21, 2020. It is now read-only.

Commit 7504cb0

Browse files
committed
Verify UCUM formatting #4
Task-Url: #4
1 parent 3cdaeda commit 7504cb0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/test/java/com/opower/unitsofmeasure/TestUnitJacksonModule.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,17 @@ public void testSerializeTemperature() throws Exception {
5353
}
5454

5555
@Test
56-
@Ignore("address https://github.com/unitsofmeasurement/uom-systems/issues/74")
5756
public void testSerializeLength() throws Exception {
5857
assertEquals("Expected JSON with a UCUM representation of the length unit", "\"[mi_i]\"",
5958
serialize(UCUM.MILE_INTERNATIONAL));
6059

6160
assertEquals("Expected JSON with a UCUM representation of the length unit", "\"m\"", serialize(Units.METRE));
6261

6362
assertEquals("Expected JSON with a UCUM representation of the length unit", "\"km\"",
64-
serialize(KILO(Units.METRE))); // TODO solve prefix formatting
63+
serialize(KILO(UCUM.METER)));
6564

6665
assertEquals("Expected JSON with a UCUM representation of the length unit", "\"mm\"",
67-
serialize(MILLI(Units.METRE)));
66+
serialize(MILLI(UCUM.METER)));
6867
}
6968

7069
@Test

0 commit comments

Comments
 (0)