非nutzboot环境添加下面的runner就行,nutzboot如何使用
public class MyNutTestRunner extends NutTestRunner {
public MyNutTestRunner(Class<?> klass) throws InitializationError {
super(klass);
}
/**
* 可覆盖createIoc,实现参数覆盖, bean替换,等定制.
*/
protected Ioc createIoc() {
Ioc ioc = null;
try {
ioc = new NutIoc(new ComboIocLoader("*js", "ioc/", "*anno", "com.leiwenjie.base.support.base",
"com.leiwenjie.base.support.user.dao"));
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
return ioc;
}
}