diff --git a/src/main/java/uk/gov/dvsa/view/cvs/CvsOdometerReadingFormatter.java b/src/main/java/uk/gov/dvsa/view/cvs/CvsOdometerReadingFormatter.java index 41f738b2..da5d8371 100644 --- a/src/main/java/uk/gov/dvsa/view/cvs/CvsOdometerReadingFormatter.java +++ b/src/main/java/uk/gov/dvsa/view/cvs/CvsOdometerReadingFormatter.java @@ -10,8 +10,8 @@ public class CvsOdometerReadingFormatter { public static final String MILES = "miles"; public static final String MILES_WELSH = "milltiroedd"; private static final String MILES_UNIT = "mi"; - public static final String KILOMETER = "kilometres"; - public static final String KILOMETER_WELSH = "cilomedr"; + public static final String KILOMETERS = "kilometres"; + public static final String KILOMETERS_WELSH = "cilomedr"; private static final String KILOMETERS_UNIT = "km"; private static final String THOUSANDS_PATTERN = "\\B(?=(?:.{3})+$)"; private static final String THOUSANDS_SEPARATOR = ","; @@ -51,9 +51,9 @@ private String formatUnit(String unit, Boolean unitWelsh) { case MILES: case MILES_UNIT: return unitWelsh.equals(Boolean.TRUE) ? MILES_WELSH : MILES; - case KILOMETER: + case KILOMETERS: case KILOMETERS_UNIT: - return unitWelsh.equals(Boolean.TRUE) ? KILOMETER_WELSH : KILOMETER; + return unitWelsh.equals(Boolean.TRUE) ? KILOMETERS_WELSH : KILOMETERS; default: return unit; }