How to resolve “You have not started an Objectify context” in JUnit?
问题 I've got some Objectify test code running in JUnit and I'm getting this error: java.lang.IllegalStateException: You have not started an Objectify context. You are probably missing the ObjectifyFilter. If you are not running in the context of an http request, see the ObjectifyService.run() method. at com.googlecode.objectify.ObjectifyService.ofy(ObjectifyService.java:44) at com.googlecode.objectify.impl.ref.LiveRef.<init>(LiveRef.java:31) at com.googlecode.objectify.Ref.create(Ref.java:26) at