Example usage for java.util Locale getClass

List of usage examples for java.util Locale getClass

Introduction

In this page you can find the example usage for java.util Locale getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

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());
}