Removed two duplicated assertions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562018 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce9d841f79
commit
82664d556c
|
@ -72,13 +72,10 @@ public class ObjectUtilsTest {
|
|||
|
||||
@Test
|
||||
public void testFirstNonNull() {
|
||||
// Cast to Object in line below ensures compiler doesn't complain of unchecked generic array creation
|
||||
assertEquals(null, ObjectUtils.firstNonNull((Object) null, (Object) null));
|
||||
assertEquals("", ObjectUtils.firstNonNull(null, ""));
|
||||
final String firstNonNullGenerics = ObjectUtils.firstNonNull(null, null, "123", "456");
|
||||
assertEquals("123", firstNonNullGenerics);
|
||||
assertEquals("123", ObjectUtils.firstNonNull("123", null, "456", null));
|
||||
assertEquals(null, ObjectUtils.firstNonNull(new Object[0]));
|
||||
assertSame(Boolean.TRUE, ObjectUtils.firstNonNull(Boolean.TRUE));
|
||||
|
||||
// Explicitly pass in an empty array of Object type to ensure compiler doesn't complain of unchecked generic array creation
|
||||
|
|
Loading…
Reference in New Issue