We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e40e04 commit 8932051Copy full SHA for 8932051
1 file changed
src/test/java/org/scijava/util/ConversionUtilsTest.java
@@ -29,7 +29,6 @@
29
30
package org.scijava.util;
31
32
-import static org.junit.Assert.assertArrayEquals;
33
import static org.junit.Assert.assertEquals;
34
import static org.junit.Assert.assertNotNull;
35
import static org.junit.Assert.assertNull;
@@ -269,7 +268,9 @@ class Struct {
269
268
270
// Test object to incompatible array type
271
setFieldValue(struct, "doubleArray", "not a double array");
272
- assertArrayEquals(new Double[] {null}, struct.doubleArray);
+ assertNotNull(struct.doubleArray);
+ assertEquals(1, struct.doubleArray.length);
273
+ assertNull(struct.doubleArray[0]);
274
275
// Test object to incompatible List type
276
setFieldValue(struct, "numberList", "not actually a list of numbers");
0 commit comments