google app engine - ClassNotPersistableException running Appengine Unit Test (JDO, Gradle) -
when running unit test in appengine, receive following error:
the class "biz.bookdesign.librivoxserver.userstars" not persistable. means either hasnt been enhanced, or enhanced version of file not in classpath (or hidden unenhanced version), or meta-data/annotations class not found. org.datanucleus.exceptions.classnotpersistableexception: class "biz.bookdesign.librivoxserver.userstars" not persistable. means either hasnt been enhanced, or enhanced version of file not in classpath (or hidden unenhanced version), or meta-data/annotations class not found. @ org.datanucleus.objectmanagerimpl.assertclasspersistable(objectmanagerimpl.java:5464) @ org.datanucleus.objectmanagerimpl.newobjectid(objectmanagerimpl.java:3425) @ org.datanucleus.api.jdo.jdopersistencemanager.newobjectidinstance(jdopersistencemanager.java:1618) @ org.datanucleus.api.jdo.jdopersistencemanager.getobjectbyid(jdopersistencemanager.java:1740) ...
i have copied jdoconfig.xml
file test class path using following commands in module gradle file:
testclasses { dolast{ jdocopy.execute() } } task jdocopy (type: copy) jdocopy { 'src/main/webapp/web-inf/classes' 'build/classes/test' include('**/*.xml') }
what else missing?
it turns out not running appengineenhance
task in test configuration. adding test configuration in intellij, task run, classes enhanced, , test ran correctly. added under run/debug configurations main menu bar.
Comments
Post a Comment