List of usage examples for java.lang Float getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithArrayTest.java
@Test public void testConfigurationPropertiesWithFloatArray() { ConfigurationPropertiesWithArray config = prepareConfigurationPropertiesWithArray(); Float floatValue = config.floatArray[0]; assertEquals(Float.class, floatValue.getClass()); assertEquals(Float.MAX_VALUE, floatValue.floatValue(), 1); assertEquals(5, config.floatArray.length); }
From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithArrayTest.java
@Test public void testConfigurationXMLWithFloatArray() { ConfigurationXMLWithArray config = prepareConfigurationXMLWithArray(); Float floatValue = config.floatArray[0]; assertEquals(Float.class, floatValue.getClass()); assertEquals(Float.MAX_VALUE, floatValue.floatValue(), 1); assertEquals(5, config.floatArray.length); }
From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithListTest.java
@Test public void testConfigurationPropertiesWithFloatList() { ConfigurationPropertiesWithList config = prepareConfigurationPropertiesWithList(); Float floatValue = config.floatList.get(0); assertEquals(Float.class, floatValue.getClass()); assertEquals(Float.MAX_VALUE, floatValue.floatValue(), 1); assertEquals(5, config.floatList.size()); }
From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithListTest.java
@Test public void testConfigurationXMLWithFloatList() { ConfigurationXMLWithList config = prepareConfigurationXMLWithList(); Float floatValue = config.floatList.get(0); assertEquals(Float.class, floatValue.getClass()); assertEquals(Float.MAX_VALUE, floatValue.floatValue(), 1); assertEquals(5, config.floatList.size()); }