List of usage examples for java.util Locale getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithArrayTest.java
@Test public void testConfigurationPropertiesWithLocaleArray() { ConfigurationPropertiesWithArray config = prepareConfigurationPropertiesWithArray(); Locale localeValue = config.localeArray[0]; Locale localeValue2 = config.localeArray[1]; assertEquals(Locale.class, localeValue.getClass()); assertEquals(Locale.ENGLISH, localeValue); assertEquals("BR", localeValue2.getCountry()); assertEquals(3, config.localeArray.length); }
From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithArrayTest.java
@Test public void testConfigurationXMLWithLocaleArray() { ConfigurationXMLWithArray config = prepareConfigurationXMLWithArray(); Locale localeValue = config.localeArray[0]; Locale localeValue2 = config.localeArray[1]; assertEquals(Locale.class, localeValue.getClass()); assertEquals(Locale.ENGLISH, localeValue); assertEquals("BR", localeValue2.getCountry()); assertEquals(3, config.localeArray.length); }
From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithListTest.java
@Test public void testConfigurationPropertiesWithLocaleList() { ConfigurationPropertiesWithList config = prepareConfigurationPropertiesWithList(); Locale localeValue = config.localeList.get(0); Locale localeValue2 = config.localeList.get(1); assertEquals(Locale.class, localeValue.getClass()); assertEquals(Locale.ENGLISH, localeValue); assertEquals("BR", localeValue2.getCountry()); assertEquals(3, config.localeList.size()); }
From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithListTest.java
@Test public void testConfigurationXMLWithLocaleList() { ConfigurationXMLWithList config = prepareConfigurationXMLWithList(); Locale localeValue = config.localeList.get(0); Locale localeValue2 = config.localeList.get(1); assertEquals(Locale.class, localeValue.getClass()); assertEquals(Locale.ENGLISH, localeValue); assertEquals("BR", localeValue2.getCountry()); assertEquals(3, config.localeList.size()); }