我正在尝试在Play中运行一些测试,并且需要在test / lib目录中有一个Play 1.x jar。但是,对于罐子,Play会显示以下错误消息:

Oops: UnexpectedException
An unexpected error occured caused by exception UnexpectedException:
While applying class play.classloading.enhancers.LocalvariablesNamesEnhancer on controllers.PlayDocumentation


此处的堆栈跟踪:https://gist.github.com/3077427

我如何包括广口瓶并避免此错误的任何提示?需要Jar,因为我正在使用play.mvc.Http$Response

最佳答案

将Play jar移至/ test / lib外部的目录可解决此问题

关于java - Play Framework 测试错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11399154/

10-11 03:03
查看更多