I'm trying to use setUp to initialise an array of objects in JUnit for my test methods but I'm doing something wrong as the tests throw up errors (null pointer exception). They run fine when I initialise arrays in the test methods themselves but this obviously isn't ideal. Can anyone point out what I'm doing wrong here?I'm trying to use setUp to initialise an array