[appengine-java] How to get testing working with anything other than the default queue

2010-02-16 Thread Will Bunker
Prior to version 2.01 I was able to get testing to work with other queues by the following code: LocalTaskQueue ltq = LocalTaskQueueTestConfig.getLocalTaskQueue(); LocalServiceContext ctx = new LocalServiceContext() { public File getAppDir() {

[appengine-java] Re: How to get testing working with anything other than the default queue

2010-02-16 Thread Will Bunker
Actually it doesn't seem to be reading the queue at all. It is coming from the standard directory in WAR, but doesn't seem to pick it up. I am on Mac OS if that makes any difference. On Feb 16, 9:35 am, Max Ross (Google) maxr+appeng...@google.com wrote: Hi Will, You're loading queue.xml from

[appengine-java] Re: How to get testing working with anything other than the default queue

2010-02-16 Thread Will Bunker
This workaround works, all I have to do is give it: return new File(war); and it finds the queue.xml file. Is there another location other than the war/WEB-INF/queue.xml the file is supposed to be in? -- You received this message because you are subscribed to the Google Groups Google App

[appengine-java] Re: How to get testing working with anything other than the default queue

2010-02-16 Thread Will Bunker
...@google.com wrote: By default the LocalTaskQueueTestConfig configures the local task queue service to not automatically execute tasks:http://code.google.com/appengine/docs/java/tools/localunittesting/jav... Or are you saying it's not reading queue.xml? On Tue, Feb 16, 2010 at 10:16 AM, Will Bunker w

[appengine-java] Re: How to get testing working with anything other than the default queue

2010-02-16 Thread Will Bunker
Ross (Google) maxr+appeng...@google.com wrote: I see.  In the test environment it looks in . by default so if you place queue.xml in the directory from which you're executing the test it should pick it up. On Tue, Feb 16, 2010 at 10:35 AM, Will Bunker w...@thebunkers.com wrote: I am saying

[appengine-java] Re: How to get testing working with anything other than the default queue

2010-02-16 Thread Will Bunker
pick it up.I On Tue, Feb 16, 2010 at 10:35 AM, Will Bunker w...@thebunkers.com wrote: I am saying that it is not reading queue.xml.  I am testing to make sure a certain function puts x number tasks in a queue that is not the default.  It doesn't load the queue.xml file unless I use your

[appengine-java] How to get more than one Testing Environment going

2010-02-16 Thread Will Bunker
I have a section of code that uses both TaskQueue and Datastore services. I can get one or the other working with: private final LocalServiceTestHelper helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig()); or private final LocalServiceTestHelper helper =

[appengine-java] Can't get JUnit to test making a JDO object persistent

2010-01-27 Thread Will Bunker
I originally posted this on General discussion, not realizing there is a Java specific group, so I am sorry for the redundancy: I have gotten the basic setup recommended in the docs. I am able to query the database successfully but as soon as I attempt to persists a JDO object I get a can't find

[appengine-java] Re: Can't get JUnit to test making a JDO object persistent

2010-01-27 Thread Will Bunker
Also turned on logging of the Datanucleus to the finest level and am getting the following: Jan 27, 2010 2:00:08 PM org.datanucleus.PersistenceConfiguration setProperty INFO: Property datanucleus.rdbms.sql.allowAllSQLStatements unknown - will be ignored Jan 27, 2010 2:00:08 PM

[appengine-java] Re: Can't get JUnit to test making a JDO object persistent

2010-01-27 Thread Will Bunker
(Google) ika...@google.com wrote: Any chance you can post the User class and the method definition for newPersistenceManager()? On Wed, Jan 27, 2010 at 2:04 PM, Will Bunker w...@thebunkers.com wrote: Also turned on logging of the  Datanucleus to the finest level and am getting the following

[appengine-java] Re: Can't get JUnit to test making a JDO object persistent

2010-01-27 Thread Will Bunker
I was wrong with my initial analysis. I had assumed because a subclass was persisting that the super class would also. When I try and add a User I get the meta/data missing also in local environment. I have narrowed it down to one line which triggers the problem: @Inheritance(strategy =

[appengine-java] Re: Can't get JUnit to test making a JDO object persistent

2010-01-27 Thread Will Bunker
. On Jan 27, 3:40 pm, Will Bunker w...@thebunkers.com wrote: I was wrong with my initial analysis.  I had assumed because a subclass was persisting that the super class would also.  When I try and add a User I get the meta/data missing also in local environment. I have narrowed it down to one line