我的项目是用gradle构建的。如果我从命令行运行测试,一切正常:
./gradlew test --tests '*.UserTest'
但是当我尝试从Intelli中运行测试时,它无法运行,因为我的类不是增强。
javax.jdo.JDOUserException: Persistent class "Class com.example.Foo does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output." has no table in the database, but the operation requires it. Please check the specification of the MetaData for this class.
运行任务appengineEnhance
没有任何区别。