Example usage for java.lang Short getClass

List of usage examples for java.lang Short getClass

Introduction

In this page you can find the example usage for java.lang Short 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 testConfigurationPropertiesWithShortArray() {
    ConfigurationPropertiesWithArray config = prepareConfigurationPropertiesWithArray();

    Short shortValue = config.shortArray[0];

    assertEquals(Short.class, shortValue.getClass());
    assertEquals(Short.MAX_VALUE, shortValue.shortValue());
    assertEquals(4, config.shortArray.length);
}

From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithArrayTest.java

@Test
public void testConfigurationXMLWithShortArray() {
    ConfigurationXMLWithArray config = prepareConfigurationXMLWithArray();

    Short shortValue = config.shortArray[0];

    assertEquals(Short.class, shortValue.getClass());
    assertEquals(Short.MAX_VALUE, shortValue.shortValue());
    assertEquals(4, config.shortArray.length);
}

From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithListTest.java

@Test
public void testConfigurationPropertiesWithShortList() {
    ConfigurationPropertiesWithList config = prepareConfigurationPropertiesWithList();

    Short shortValue = config.shortList.get(0);

    assertEquals(Short.class, shortValue.getClass());
    assertEquals(Short.MAX_VALUE, shortValue.shortValue());
    assertEquals(4, config.shortList.size());
}

From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithListTest.java

@Test
public void testConfigurationXMLWithShortList() {
    ConfigurationXMLWithList config = prepareConfigurationXMLWithList();

    Short shortValue = config.shortList.get(0);

    assertEquals(Short.class, shortValue.getClass());
    assertEquals(Short.MAX_VALUE, shortValue.shortValue());
    assertEquals(4, config.shortList.size());
}