Skip to content

HttpClient 4.0 java tests#7912

Merged
trask merged 7 commits into
open-telemetry:mainfrom
altaiezior:httpclient-4-0-java-tests
Feb 27, 2023
Merged

HttpClient 4.0 java tests#7912
trask merged 7 commits into
open-telemetry:mainfrom
altaiezior:httpclient-4-0-java-tests

Conversation

@altaiezior

@altaiezior altaiezior commented Feb 26, 2023

Copy link
Copy Markdown
Contributor

Converts apache-httpclient-4.0 unit tests in java. Version 4.0 was using GuardedBy annotation which was interfering with the test cases, hence the library version was shifted to 4.1. #7195

@altaiezior altaiezior requested a review from a team February 26, 2023 12:02
Comment on lines +27 to +28
// 4.0.x uses GuardedBy which interferes with compiling tests
library("org.apache.httpcomponents:httpclient:4.1")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

try this:

Suggested change
// 4.0.x uses GuardedBy which interferes with compiling tests
library("org.apache.httpcomponents:httpclient:4.1")
library("org.apache.httpcomponents:httpclient:4.0")
testCompileOnly("net.jcip:jcip-annotations:1.0")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes @trask this works, thanks.

@trask trask merged commit 7bb978d into open-telemetry:main Feb 27, 2023
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.

3 participants