arquillian / arquillian-extension-rest

Declarative REST testing extension
37 stars 20 forks source link

Jersey client on glassfish embedded/remote crashes #33

Closed hanneskaeufler closed 4 weeks ago

hanneskaeufler commented 7 years ago
Issue Overview

According to the readme, I should be able to swap out

        <dependency>
            <groupId>org.jboss.arquillian.extension</groupId>
            <artifactId>arquillian-rest-client-impl-3x</artifactId>
            <version>1.0.0.Alpha4</version>
            <scope>test</scope>
        </dependency>

with

        <dependency>
            <groupId>org.jboss.arquillian.extension</groupId>
            <artifactId>arquillian-rest-client-impl-jersey</artifactId>
            <version>1.0.0.Alpha4</version>
            <scope>test</scope>
        </dependency>

However, this fails. Am I wrong in expecting this to work?

Expected Behaviour

Builds and tests pass

Current Behaviour

Tests fail with

java.lang.NoSuchMethodError: org.glassfish.jersey.model.internal.CommonConfig.configureAutoDiscoverableProviders(Lorg/glassfish/hk2/api/ServiceLocator;)V

For entire stacktrace see https://travis-ci.org/hanneskaeufler/java-ee-rest-api-playground/builds/186091299

Steps To Reproduce
  1. Replace resteasy 3x with jersey implementation
  2. Run tests
Additional Information

I am building this with the following maven details:

For the entire pom see https://github.com/hanneskaeufler/java-ee-rest-api-playground/blob/master/BooksApi-web/pom.xml

<details>
 <summary>$mvn --version</summary>
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_112, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.2", arch: "x86_64", family: "mac"
</details>