/*
 * Copyright (C) 2008 feilong
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.feilong.core.lang;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runners.Parameterized.Parameters;

import com.feilong.core.AbstractBooleanParameterizedTest;

/**
 * The Class ObjectUtilIsArrayParameterizedTest.
 *
 * @author <a href="http://feitianbenyue.iteye.com/">feilong</a>
 */
public class ObjectUtilIsArrayParameterizedTest extends AbstractBooleanParameterizedTest<Object, Boolean>{

    /**
     * Data.
     *
     * @return the iterable
     */
    @Parameters(name = "index:{index}: ObjectUtil.isArray({0})={1}")
    public static Iterable<Object[]> data(){
        int[] i = {};
        Object[] valids = { i, new int[] { 1, 2, 3 }, new Integer[0], new String[0] };

        Object[] invalids = { 1 };
        return toList(valids, invalids);
    }

    /**
     * Test is array.
     */
    @Test
    public void testIsArray(){
        assertEquals(expectedValue, ObjectUtil.isArray(input));
    }
}
@@ -1268,50 +1268,165 @@
  = %7B
- i, new int%5B%5D %7B 1, 2, 3 %7D, new Integer%5B0%5D,
+%0A                            i, //%0A                            new int%5B%5D %7B 1, 2, 3 %7D,%0A                            new Integer%5B0%5D,%0A                           
  new

update test