[TestMethod] public void testAlternateFormatsFailsGracefully()
        {
            PhoneMetadata noAlternateFormats = MetadataManager.getAlternateFormatsForCountry(999);

            assertNull(noAlternateFormats);
        }
        [TestMethod] public void testShortNumberMetadataFailsGracefully()
        {
            PhoneMetadata noShortNumberMetadata = MetadataManager.getShortNumberMetadataForRegion("XXX");

            assertNull(noShortNumberMetadata);
        }
Ejemplo n.º 3
0
 /**
  * Convenience method to get a list of what regions the library has metadata for.
  */
 internal Set <String> getSupportedRegions()
 {
     return(Collections.unmodifiableSet(MetadataManager.getShortNumberMetadataSupportedRegions()));
 }