Example usage for java.lang Float getClass

List of usage examples for java.lang Float getClass

Introduction

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