阅读背景:

在JUnit中的setUp()中初始化一个对象数组

来源:互联网 

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




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: