Closed GoogleCodeExporter closed 9 years ago
Having this class public is possibly a good idea for a number of use cases. In
the meantime you can use this (slightly nicer than reflection) workaround for
unit testing:
Cache.setHashCacheEntryNames(false);
Caller.getInstance().setCache(new FileSystemCache(new File("directory/with/sample/xmls")));
then name your xml files like this:
geo.getevents.distanceMyDistancelocationMyLocationpage1.xml
(syntax is: method name (lower case) then a dot then every parameter and its
value ordered alphabetically. Note that you may have to include parameters such
as page or limit even if you do not pass them explicitly to the method).
When calling
Geo.getEvents("MyLocation", "MyDistance", k);
the results will be loaded from your local file.
Original comment by jannikov...@gmail.com
on 5 Jul 2011 at 8:51
Original comment by jannikov...@gmail.com
on 21 Dec 2011 at 4:54
Original issue reported on code.google.com by
marcel@frightanic.com
on 5 Jul 2011 at 6:13