Re: [appengine-java] How to count datastore queries for JUnit test

2010-10-19 Thread Ikai Lan (Google)
I recall seeing something in test utils that did this. Check out the tests in this package for details: http://code.google.com/p/datanucleus-appengine/source/browse/#svn/trunk/tests/org/datanucleus/store/appengine/query%3Fstate%3Dclosed There might be a better way to approach the test, however. S

[appengine-java] How to count datastore queries for JUnit test

2010-10-18 Thread Jonas Gehring
Hello. I have implemented a method that does a few datastore queries. For performance I decided to cache the results of the queries and use the cache on every next method call. Now I would like to test whether my cache works within a JUnit test. But for this I must count the datastore queries and