List of usage examples for java.lang Double getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithArrayTest.java
@Test public void testConfigurationPropertiesWithDoubleArray() { ConfigurationPropertiesWithArray config = prepareConfigurationPropertiesWithArray(); Double doubleValue = config.doubleArray[0]; assertEquals(Double.class, doubleValue.getClass()); assertEquals(Double.MAX_VALUE, doubleValue.doubleValue(), 1); assertEquals(3, config.doubleArray.length); }
From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithArrayTest.java
@Test public void testConfigurationXMLWithDoubleArray() { ConfigurationXMLWithArray config = prepareConfigurationXMLWithArray(); Double doubleValue = config.doubleArray[0]; assertEquals(Double.class, doubleValue.getClass()); assertEquals(Double.MAX_VALUE, doubleValue.doubleValue(), 1); assertEquals(3, config.doubleArray.length); }
From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithListTest.java
@Test public void testConfigurationPropertiesWithDoubleList() { ConfigurationPropertiesWithList config = prepareConfigurationPropertiesWithList(); Double doubleValue = config.doubleList.get(0); assertEquals(Double.class, doubleValue.getClass()); assertEquals(Double.MAX_VALUE, doubleValue.doubleValue(), 1); assertEquals(3, config.doubleList.size()); }
From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithListTest.java
@Test public void testConfigurationXMLWithDoubleList() { ConfigurationXMLWithList config = prepareConfigurationXMLWithList(); Double doubleValue = config.doubleList.get(0); assertEquals(Double.class, doubleValue.getClass()); assertEquals(Double.MAX_VALUE, doubleValue.doubleValue(), 1); assertEquals(3, config.doubleList.size()); }