Re: [appengine-java] Re: ApiProxyLocalImpl class not public

2010-04-26 Thread Max Ross (Google)
What aspect of the local datastore are you trying to configure that isn't covered by LocalDatastoreServiceTestConfig()? I don't think you should have to configure the ApiProxyLocal or the LocalServerEnvironment directly. On Sun, Apr 25, 2010 at 3:40 PM, mvsoares mavsoa...@gmail.com wrote:

Re: [appengine-java] Re: ApiProxyLocalImpl class not public

2010-04-26 Thread Marcos Vinícius Soares
I just wanted an instance of PersistenceManager to use in unit tests and I was able to setup it up. I'm not sure how to get it through LocalDatastoreServiceTestConfig. Anyway, it is working now as per the code I sent earlier. Thanks On Mon, Apr 26, 2010 at 1:33 PM, Max Ross (Google)

Re: [appengine-java] Re: ApiProxyLocalImpl class not public

2010-04-26 Thread Max Ross (Google)
Your JDO config is not related to LocalServiceTestHelper or LocalDatastoreServiceTestConfig. If you create your PersistenceManager in the typical way after you create a LocalServiceTestHelper with a LocalDatastoreServiceTestConfig and then call helper.setUp() you should be all set. Max

[appengine-java] Re: ApiProxyLocalImpl class not public

2010-04-25 Thread mvsoares
Indeed, ApiProxyLocalImpl is not public anymore in newer versions of google app engine. Find below one solution to the problem: import java.io.File; import java.util.Properties; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import