Example usage for java.awt Color getClass

List of usage examples for java.awt Color getClass

Introduction

In this page you can find the example usage for java.awt Color 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 testConfigurationPropertiesWithColorArray() {
    ConfigurationPropertiesWithArray config = prepareConfigurationPropertiesWithArray();

    Color colorValue = config.colorArray[0];

    assertEquals(Color.class, colorValue.getClass());
    assertEquals(Color.gray, colorValue);
    assertEquals(3, config.colorArray.length);
}

From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithArrayTest.java

@Test
public void testConfigurationXMLWithColorArray() {
    ConfigurationXMLWithArray config = prepareConfigurationXMLWithArray();

    Color colorValue = config.colorArray[0];

    assertEquals(Color.class, colorValue.getClass());
    assertEquals(Color.gray, colorValue);
    assertEquals(3, config.colorArray.length);
}

From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithListTest.java

@Test
public void testConfigurationPropertiesWithColorList() {
    ConfigurationPropertiesWithList config = prepareConfigurationPropertiesWithList();

    Color colorValue = config.colorList.get(0);

    assertEquals(Color.class, colorValue.getClass());
    assertEquals(Color.gray, colorValue);
    assertEquals(3, config.colorList.size());
}

From source file:br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoaderWithListTest.java

@Test
public void testConfigurationXMLWithColorList() {
    ConfigurationXMLWithList config = prepareConfigurationXMLWithList();

    Color colorValue = config.colorList.get(0);

    assertEquals(Color.class, colorValue.getClass());
    assertEquals(Color.gray, colorValue);
    assertEquals(3, config.colorList.size());
}