List of usage examples for java.lang Short getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
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()); }