I’m trying to use a “test” or “dev” version of Google App Engine’s LogService so that I can use it in unit tests outside of GAE.
I included the appengine-testing.jar, appengine-api.jar and appengine-api-stubs.jar on my classpath, and see a class that looks like what I want:
com.google.appengine.api.log.dev.LocalLogService
When I create an instance of this and try to look for a fetch(LogQuery) method, I don’t see any. So clearly this isn’t the class I’m looking for. Where am I going wrong? Thanks in advance.
Just use something like Mockito to mock the GAE
LoggingService: