测试失败,测试'关于grails项目从2.2.4转换为2.4.3

时间:2014-09-04 19:32:12

标签: unit-testing maven grails

我已成功将两个项目从Grails 2.2.4转换为2.4.3。我可以运行测试,并从grails命令行和ggts中运行app。

然后,我将它转换为maven项目,使用create-pom获取初始的pom.xml文件。在获得正确的依赖关系之后,我可以再次从命令行和ggts运行测试和应用程序。但是我使用' mvn test'我的单元测试(不是spock测试)会出错。

错误如下所示:

java.lang.NullPointerException
    at grails.test.runtime.GrailsApplicationTestPlugin.createParentContext(GrailsApplicationTestPlugin.groovy:143)
    at grails.test.runtime.GrailsApplicationTestPlugin.initGrailsApplication(GrailsApplicationTestPlugin.groovy:96)
    at grails.test.runtime.GrailsApplicationTestPlugin.onTestEvent(GrailsApplicationTestPlugin.groovy:327)
    at grails.test.runtime.TestRuntime.deliverEvent(TestRuntime.groovy:295)

感觉就像某种设置或依赖性问题。

0 个答案:

没有答案
相关问题