Replace assertEquals() with arrayAssertEquals(). #1555

Fixes `AssertEqualsCalledOnArray` inspection violations in test code.

Description:
>Reports any calls to JUnit's assertEquals() method with arguments of type array. Arrays should be checked with one of the assertArrayEquals() methods.
This commit is contained in:
Michal Kordas 2015-08-18 20:47:17 +02:00 committed by Roman Ivanov
parent 5306bb6be9
commit 3440ef73c9
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
package com.puppycrawl.tools.checkstyle.api;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@ -59,7 +60,7 @@ public class JavadocTagInfoTest {
JavadocTagInfo.Type.INLINE,
};
JavadocTagInfo.Type[] actual = JavadocTagInfo.Type.values();
assertEquals(expected, actual);
assertArrayEquals(expected, actual);
}
@Test