Is there a way to create a mock Key object, or to create a key object without actually initializing an app engine enviroment?
I want to unit test some code that depends on a JDO object. In order to create this JDO object, I need to pass in a Key, which it normally uses as a reference to another object. I don't need the Key to actually be functional for this test, I just need it to return a constant value for the getId() method. Key is a final class, so I can't create a subclass of it that meets my needs. I also can't seem to get KeyFactory to create a key without first registering an app engine API. Thanks, -peter -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.