Example usage for org.apache.commons.lang3 ArrayUtils EMPTY_BYTE_OBJECT_ARRAY

List of usage examples for org.apache.commons.lang3 ArrayUtils EMPTY_BYTE_OBJECT_ARRAY

Introduction

In this page you can find the example usage for org.apache.commons.lang3 ArrayUtils EMPTY_BYTE_OBJECT_ARRAY.

Prototype

Byte[] EMPTY_BYTE_OBJECT_ARRAY

To view the source code for org.apache.commons.lang3 ArrayUtils EMPTY_BYTE_OBJECT_ARRAY.

Click Source Link

Document

An empty immutable Byte array.

Usage

From source file:net.larry1123.elec.util.test.config.AbstractConfigTest.java

public void ByteArrayListTest(String fieldName, Field testField) {
    try {//from w  w  w. j a  va  2 s  .c  o m
        //noinspection unchecked
        byte[] testFieldValue = ArrayUtils.toPrimitive(
                ((ArrayList<Byte>) testField.get(getConfigBase())).toArray(ArrayUtils.EMPTY_BYTE_OBJECT_ARRAY));
        Assert.assertTrue(ArrayUtils.isEquals(getPropertiesFile().getByteArray(fieldName), testFieldValue));
    } catch (IllegalAccessException e) {
        assertFailFieldError(fieldName);
    }
}

From source file:com.github.xbn.array.helper.NewPrimitiveArrayHelper.java

public Byte[] getEmpty() {
    return ArrayUtils.EMPTY_BYTE_OBJECT_ARRAY;
}