In order to do some unit tests for a method that uses the TaskQueue, I have 
included the following dependencies in my pom:

<dependency>

<groupId>com.google.appengine</groupId>

<artifactId>appengine-testing</artifactId>

<version>${appengine.target.version}</version>

<scope>test</scope>

</dependency>

<dependency>

<groupId>com.google.appengine</groupId>

<artifactId>appengine-api-stubs</artifactId>

<version>${appengine.target.version}</version>

<scope>test</scope>

</dependency>
where the ${appengine.target.version is 1.9.42. My test works fine. 
However, as soon as the appengine-api-stubs dependency wass added to my pom 
other tests started failing. It seems to interfere with the org.hsql 
dependency because the tests fail with this error:

java.lang.NoSuchMethodError: 
org.hsqldb.DatabaseURL.parseURL(Ljava/lang/String;ZZ)Lorg/hsqldb/persist/HsqlProperties;

I checked the appengine-api-stubs and it uses a class: 
*org.quartz.impl.jdbcjobstore.HSQLDBDelegate.class, 
*which I thought might be the problem. I added an <exclusion> of the 
org.quartz.scheduler, but the error remained the same.

*mvn dependency:tree -Dverbose -Dincludes=org.hsqldb:hsqldb* does not show 
other transitive dependencies or versions of hsqldb except the 2.3.2 I have 
declared in the pom. Tried to add newer versions of hsql dependency, 
nothing changed. 
Tried to add also (as specified here: 
https://cloud.google.com/appengine/docs/standard/java/tools/localunittesting
)
appengine-api
appengine-api-labs
appengine-tools-api
dependencies to my pom, same error.

As soon as I remove the appengine-api-stubs dependency and comment my test 
with the local task queue, all tests pass.

Any ideas about this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2cbd91a1-248d-4046-9441-d70e46562588%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to