Grails测试应用程序单元失败

时间:2018-06-04 12:13:42

标签: unit-testing grails groovy spock

我正在尝试运行grails test-app单元,但显示以下错误

| Error Fatal error running tests: Error creating bean with name 'br.com.bstes.ProductAgreementController': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productAgreementService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fiscalClassificationService': Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError (Use --stacktrace to see the full trace)
| Tests FAILED  - view reports in /home/xman/desenv/xa/xa-one/target/test-reports

Grails测试单元也启动了tomcat应用程序?

我需要在java中运行此测试类似的junit测试。

这是怎么做到的?

0 个答案:

没有答案