Example usage for java.lang Double getClass

List of usage examples for java.lang Double getClass

Introduction

In this page you can find the example usage for java.lang Double 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 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());
}