Example usage for java.lang Boolean getClass

List of usage examples for java.lang Boolean getClass

Introduction

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

    Boolean booleanValue = config.booleanArray[0];

    assertEquals(Boolean.class, booleanValue.getClass());
    assertEquals(2, config.booleanArray.length);
}

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

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

    Boolean booleanValue = config.booleanArray[0];

    assertEquals(Boolean.class, booleanValue.getClass());
    assertEquals(2, config.booleanArray.length);
}

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

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

    Boolean booleanValue = config.booleanList.get(0);

    assertEquals(Boolean.class, booleanValue.getClass());
    assertEquals(2, config.booleanList.size());
}

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

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

    Boolean booleanValue = config.booleanList.get(0);

    assertEquals(Boolean.class, booleanValue.getClass());
    assertEquals(2, config.booleanList.size());
}

From source file:org.apache.hawq.pxf.plugins.hdfs.utilities.RecordkeyAdapterTest.java

/**
 * Test convertKeyValue for several calls of the same type
 *///from  www .  ja v a 2 s.c o  m
@Test
public void convertKeyValueManyCalls() {
    Boolean key = true;
    mockLog();
    initRecordkeyAdapter();
    runConvertKeyValue(key, new BooleanWritable(key));
    verifyLog("converter initialized for type " + key.getClass() + " (key value: " + key + ")");

    for (int i = 0; i < 5; ++i) {
        key = (i % 2) == 0;
        runConvertKeyValue(key, new BooleanWritable(key));
    }
    verifyLogOnlyOnce();
}