Struts 2.3.14 junit test
问题 I'm using Struts 2.3.14 for my application... I need some unit test in my application... so I'm using junit4... but when I use ActionProxy in my test, it will show NullPointerException ... my test code is: ActionProxy proxy=getActionProxy("/customize/saveRewards"); SaveRewardsPlus rewards=(SaveRewardsPlus)proxy.getAction(); request.setParameter("list[0].img_id", "1"); request.setParameter("list[0].tag", "Test Tag"); request.setParameter("list[0].desc", "Test Desc"); String result=proxy