Skip to content

Commit 8932051

Browse files
committed
ConversionUtilsTest: make comparison more granular
1 parent 4e40e04 commit 8932051

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/org/scijava/util/ConversionUtilsTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
package org.scijava.util;
3131

32-
import static org.junit.Assert.assertArrayEquals;
3332
import static org.junit.Assert.assertEquals;
3433
import static org.junit.Assert.assertNotNull;
3534
import static org.junit.Assert.assertNull;
@@ -269,7 +268,9 @@ class Struct {
269268

270269
// Test object to incompatible array type
271270
setFieldValue(struct, "doubleArray", "not a double array");
272-
assertArrayEquals(new Double[] {null}, struct.doubleArray);
271+
assertNotNull(struct.doubleArray);
272+
assertEquals(1, struct.doubleArray.length);
273+
assertNull(struct.doubleArray[0]);
273274

274275
// Test object to incompatible List type
275276
setFieldValue(struct, "numberList", "not actually a list of numbers");

0 commit comments

Comments
 (0)