简体   繁体   中英

Play framework test error

I'm trying to run some tests in Play and need to have a Play 1.x jar in the test/lib directory. With the jar, however, Play gives an error with the message:

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

Stack trace here: https://gist.github.com/3077427

Any tips how I can include the jar and avoid this error? Jar is needed because I'm using play.mvc.Http$Response .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM