D | ArrayUtilsInsertTest.java | 37 final boolean[] result = ArrayUtils.insert(42, array, null); in testInsertBooleans() 41 assertNull(ArrayUtils.insert(42, null, array)); in testInsertBooleans() 42 assertArrayEquals(new boolean[0], ArrayUtils.insert(0, new boolean[0], null)); in testInsertBooleans() 43 assertNull(ArrayUtils.insert(42, (boolean[]) null, null)); in testInsertBooleans() 45 assertThrows(IndexOutOfBoundsException.class, () -> ArrayUtils.insert(-1, array, array)); in testInsertBooleans() 46 …assertThrows(IndexOutOfBoundsException.class, () -> ArrayUtils.insert(array.length + 1, array, arr… in testInsertBooleans() 48 … assertArrayEquals(new boolean[]{false, true, false, true}, ArrayUtils.insert(0, array, false)); in testInsertBooleans() 49 … assertArrayEquals(new boolean[]{true, false, false, true}, ArrayUtils.insert(1, array, false)); in testInsertBooleans() 50 …assertArrayEquals(new boolean[]{true, false, true, false}, ArrayUtils.insert(array.length, array, … in testInsertBooleans() 51 …assertArrayEquals(new boolean[]{false, true, false, true, false, true}, ArrayUtils.insert(0, array… in testInsertBooleans() [all …]
|