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:
parent
5306bb6be9
commit
3440ef73c9
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue