Move SpringRestTemplateTest
MODIFY
instrumentation/http-url-connection/javaagent/build.gradle.kts
instrumentation/http-url-connection/javaagent/build.gradle.kts
@@ -7,7 +7,3 @@ muzzle {
coreJdk()
}
}
-
-dependencies {
- testImplementation("org.springframework:spring-web:4.3.7.RELEASE")
-}

ADD
instrumentation/spring/spring-web-3.1/testing/build.gradle.kts
+plugins {
+ id("otel.javaagent-testing")
+}
+
+dependencies {
+ testImplementation("org.springframework:spring-web:4.3.7.RELEASE")
+
+ testInstrumentation(project(":instrumentation:http-url-connection:javaagent"))
+}

RENAME
instrumentation/http-url-connection/javaagent/src/test/groovy/SpringRestTemplateTest.groovy
instrumentation/spring/spring-web-3.1/testing/src/test/groovy/SpringRestTemplateTest.groovy
MODIFY
settings.gradle.kts
settings.gradle.kts
@@ -306,6 +306,7 @@ include(":instrumentation:spring:spring-integration-4.1:testing")
include(":instrumentation:spring:spring-rabbit-1.0:javaagent")
include(":instrumentation:spring:spring-scheduling-3.1:javaagent")
include(":instrumentation:spring:spring-web-3.1:library")
+include(":instrumentation:spring:spring-web-3.1:testing")
include(":instrumentation:spring:spring-webmvc-3.1:javaagent")
include(":instrumentation:spring:spring-webmvc-3.1:library")
include(":instrumentation:spring:spring-webflux-5.0:javaagent")

Move SpringRestTemplateTest (#3870)