Skip to content

Instantly share code, notes, and snippets.

@isidore
Last active April 28, 2019 20:50
Show Gist options
  • Save isidore/09b9a29adbce41d792d49c2c12f7fbda to your computer and use it in GitHub Desktop.
Save isidore/09b9a29adbce41d792d49c2c12f7fbda to your computer and use it in GitHub Desktop.
@Test
public void testAddManyToArray() throws Exception
{
Integer[] numbers = {1, 2, 3};
numbers = ArrayUtils.addToArray(numbers, 4, 5, 6);
Integer[] resulting = {1, 2, 3, 4, 5, 6};
assertArrayEquals(resulting, numbers);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment