@Test public void normalize_NULL() { assertEquals("", normalizer.normalize(null)); }
@Override public String normalize(String countryCode) { if (StringUtils.isBlank(countryCode)) { return ""; } String normalizedCountryCode = countryCode.toLowerCase().trim(); if (COUNTRY_CODE_REPLACEMENTS.containsKey(normalizedCountryCode)) { return COUNTRY_CODE_REPLACEMENTS.get(normalizedCountryCode); } return normalizedCountryCode; }
CountryCodeNormalizer implements StringNormalizer, Serializable { @Override public String normalize(String countryCode) { if (StringUtils.isBlank(countryCode)) { return ""; } String normalizedCountryCode = countryCode.toLowerCase().trim(); if (COUNTRY_CODE_REPLACEMENTS.containsKey(normalizedCountryCode)) { return COUNTRY_CODE_REPLACEMENTS.get(normalizedCountryCode); } return normalizedCountryCode; } }
CountryCodeNormalizer implements StringNormalizer, Serializable { @Override public String normalize(String countryCode) { if (StringUtils.isBlank(countryCode)) { return ""; } String normalizedCountryCode = countryCode.toLowerCase().trim(); if (COUNTRY_CODE_REPLACEMENTS.containsKey(normalizedCountryCode)) { return COUNTRY_CODE_REPLACEMENTS.get(normalizedCountryCode); } return normalizedCountryCode; }  }
CountryCodeNormalizer implements StringNormalizer, Serializable { @Override public String normalize(String countryCode) { if (StringUtils.isBlank(countryCode)) { return ""; } String normalizedCountryCode = countryCode.toLowerCase().trim(); if (COUNTRY_CODE_REPLACEMENTS.containsKey(normalizedCountryCode)) { return COUNTRY_CODE_REPLACEMENTS.get(normalizedCountryCode); } return normalizedCountryCode; }  @Override String normalize(String countryCode); }
CountryCodeNormalizer implements StringNormalizer, Serializable { @Override public String normalize(String countryCode) { if (StringUtils.isBlank(countryCode)) { return ""; } String normalizedCountryCode = countryCode.toLowerCase().trim(); if (COUNTRY_CODE_REPLACEMENTS.containsKey(normalizedCountryCode)) { return COUNTRY_CODE_REPLACEMENTS.get(normalizedCountryCode); } return normalizedCountryCode; }  @Override String normalize(String countryCode);  }