PhoneNumber emergencyNumber = phoneNumberUtil.parse(exampleNumber, regionCode);
if (shortNumberInfo.getExpectedCost(emergencyNumber) !=
ShortNumberInfo.ShortNumberCost.TOLL_FREE) {
- wrongTypeCounter++;
- LOGGER.log(Level.SEVERE, "Emergency example number not toll free for " + regionCode);
+ // TODO: Reenable this when a method is available to get the expected cost for a
+ // particular region.
+ // wrongTypeCounter++;
+ LOGGER.log(Level.WARNING, "Emergency example number not toll free for " + regionCode);
}
}
}
public void testGetExampleShortNumberForCost() {
assertEquals("3010", shortInfo.getExampleShortNumberForCost(RegionCode.FR,
ShortNumberInfo.ShortNumberCost.TOLL_FREE));
- assertEquals("118777", shortInfo.getExampleShortNumberForCost(RegionCode.FR,
+ assertEquals("1023", shortInfo.getExampleShortNumberForCost(RegionCode.FR,
ShortNumberInfo.ShortNumberCost.STANDARD_RATE));
- assertEquals("3200", shortInfo.getExampleShortNumberForCost(RegionCode.FR,
+ assertEquals("42000", shortInfo.getExampleShortNumberForCost(RegionCode.FR,
ShortNumberInfo.ShortNumberCost.PREMIUM_RATE));
assertEquals("", shortInfo.getExampleShortNumberForCost(RegionCode.FR,
ShortNumberInfo.ShortNumberCost.UNKNOWN_COST));