/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You 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 org.apache.commons.csv;

import java.util.List;

import org.junit.Assert;

/**
 * Utility methods for test cases
 *
 * @version $Id$
 */
final class Utils {

    private Utils() {
    }

    /**
     * Checks if the two 2d arrays have identical contents.
     *
     * @param message the message to be displayed
     * @param expected the 2d array of expected results
     * @param actual the 2d array of actual results
     */
    public static void compare(final String message, final String[][] expected, final String[][] actual) {
        Assert.assertEquals(message+"  - outer array size", expected.length, actual.length);
        for(int i = 0; i < expected.length; i++) {
            Assert.assertArrayEquals(message+" (entry "+i+")",expected[i], actual[i]);
        }
    }

    /**
     * Checks if the 2d array has the same contents as the list of records.
     *
     * @param message the message to be displayed
     * @param expected the 2d array of expected results
     * @param actual the List of {@link CSVRecord} entries, each containing an array of values
     */
    public static void compare(final String message, final String[][] expected, final List<CSVRecord> actual) {
        Assert.assertEquals(message+"  - outer array size", expected.length, actual.size());
        for(int i = 0; i < expected.length; i++) {
            Assert.assertArrayEquals(message+" (entry "+i+")",expected[i], actual.get(i).values());
        }
    }
}

@@ -996,604 +996,8 @@
  %7D%0A%0A
-    /**%0A     * Checks if the two 2d arrays have identical contents.%0A     *%0A     * @param message the message to be displayed%0A     * @param expected the 2d array of expected results%0A     * @param actual the 2d array of actual results%0A     */%0A    public static void compare(final String message, final String%5B%5D%5B%5D expected, final String%5B%5D%5B%5D actual) %7B%0A        Assert.assertEquals(message+%22  - outer array size%22, expected.length, actual.length);%0A        for(int i = 0; i %3C expected.length; i++) %7B%0A            Assert.assertArrayEquals(message+%22 (entry %22+i+%22)%22,expected%5Bi%5D, actual%5Bi%5D);%0A        %7D%0A    %7D%0A%0A
     

Remove unused method. It made no sense anyway, since Assert.assertArrayEquals is capable of comparing multi dimensional arrays.