Use org.junit.Assert.assertArrayEquals
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1591830 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fe354beb93
commit
548e5c42f5
|
@ -592,11 +592,4 @@ public class DurationFormatUtilsTest {
|
|||
}
|
||||
}
|
||||
|
||||
private void assertArrayEquals(final DurationFormatUtils.Token[] obj1, final DurationFormatUtils.Token[] obj2) {
|
||||
assertEquals("Arrays are unequal length. ", obj1.length, obj2.length);
|
||||
for (int i = 0; i < obj1.length; i++) {
|
||||
assertTrue("Index " + i + " not equal, " + obj1[i] + " vs " + obj2[i], obj1[i].equals(obj2[i]));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue