Skip to content

Conversation

trask
Copy link
Member

@trask trask commented Oct 17, 2025

Seems like an unnecessary module (which also doesn't conform to our convention of testing modules being shared tests).

… module

Consolidates test structure to match spring-web-6.0 pattern where tests
live in the javaagent module rather than a separate testing module.

Changes:
- Moved SpringRestTemplateTest from :testing to :javaagent/src/test
- Updated package from io.opentelemetry.javaagent.instrumentation.spring.web
  to io.opentelemetry.javaagent.instrumentation.springweb.v3_1 to match
  the javaagent module's package structure
- Changed class visibility from public to package-private
- Removed :testing module from settings.gradle.kts
- Deleted instrumentation/spring/spring-web/spring-web-3.1/testing directory

All 30 tests pass successfully in their new location.
@trask trask marked this pull request as ready for review October 17, 2025 16:45
@trask trask requested a review from a team as a code owner October 17, 2025 16:45

testInstrumentation(project(":instrumentation:http-url-connection:javaagent"))

latestDepTestLibrary("org.springframework:spring-web:5.+") // see spring-web-6.0 module
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think we were getting latest dep testing for this module previously

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.

2 participants