File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/test/java/org/scijava/util Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2929
3030package org .scijava .util ;
3131
32- import static org .junit .Assert .assertArrayEquals ;
3332import static org .junit .Assert .assertEquals ;
3433import static org .junit .Assert .assertNotNull ;
3534import 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" );
You can’t perform that action at this time.
0 commit comments