Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support RESTeasy 4.0 version in unit tests #1082

Merged
merged 3 commits into from
Sep 11, 2020

Conversation

mateuszrzeszutek
Copy link
Member

@mateuszrzeszutek mateuszrzeszutek commented Aug 21, 2020

  • Split jaxrs-2.0 into jaxrs-2.0-common and jaxrs-2.0-testing (similar to e.g. play)
  • Support newest RESTEasy version in unit tests
  • Remove some deprecated SpanWithScope usages

This PR can only be merged after #1083 is solved (#1167 merged) -- before that happens ./gradlew :instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-resteasy-3.1:test -PtestLatestDeps=true will always fail.

@mateuszrzeszutek mateuszrzeszutek changed the title Add missing RESTEasy (and Jersey) unit tests Support RESTeasy 4.0 version in unit tests Aug 21, 2020
@mateuszrzeszutek mateuszrzeszutek force-pushed the resteasy-4.0 branch 2 times, most recently from aa118db to 67018d6 Compare August 24, 2020 11:45
@mateuszrzeszutek mateuszrzeszutek force-pushed the resteasy-4.0 branch 2 times, most recently from 496c5ae to 6bd67fb Compare September 4, 2020 11:34
@mateuszrzeszutek mateuszrzeszutek force-pushed the resteasy-4.0 branch 4 times, most recently from ea9d277 to 0603649 Compare September 9, 2020 09:26
@mateuszrzeszutek mateuszrzeszutek marked this pull request as ready for review September 9, 2020 09:26
@iNikem
Copy link
Contributor

iNikem commented Sep 9, 2020

  • Support newest RESTEasy version in unit tests

Can you explain this a little more? I haven't noticed 4.0 version in any changed files :)

@mateuszrzeszutek
Copy link
Member Author

Can you explain this a little more? I haven't noticed 4.0 version in any changed files :)

Sure! RESTeasy changed their module naming scheme in 4.0: before it was always named resteasy-jaxrs, from version 4.0 the same module was called resteasy-core. The code that actually enables testing 4.0 is in the jaxrs-2.0-resteasy-3.1.gradle file:

  latestDepTestLibrary group: 'org.jboss.resteasy', name: 'resteasy-core', version: '+'
}

if (findProperty('testLatestDeps')) {
  configurations {
    testImplementation.exclude group: 'org.jboss.resteasy', module: 'resteasy-jaxrs'
  }
}

where for the latestDepTest run resteasy-jaxrs is excluded and resteasy-core is added.

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍 One small question below.

mateuszrzeszutek and others added 2 commits September 10, 2020 11:15
* Split jaxrs-2.0 into jaxrs-2.0-common and jaxrs-2.0-testing (similar to e.g. play)
* Support newest RESTEasy version in unit tests
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@iNikem iNikem merged commit 9566315 into open-telemetry:master Sep 11, 2020
@mateuszrzeszutek mateuszrzeszutek deleted the resteasy-4.0 branch February 5, 2021 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants