Ver código fonte

fix(deps): update dependency org.assertj:assertj-core to v3.26.0 (main) (#11458)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
renovate[bot] 9 meses atrás
pai
commit
373224c4c0

+ 1 - 1
conventions/build.gradle.kts

@@ -74,5 +74,5 @@ dependencies {
   testImplementation(enforcedPlatform("org.junit:junit-bom:5.10.2"))
   testImplementation("org.junit.jupiter:junit-jupiter-api")
   testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
-  testImplementation("org.assertj:assertj-core:3.25.3")
+  testImplementation("org.assertj:assertj-core:3.26.0")
 }

+ 1 - 1
dependencyManagement/build.gradle.kts

@@ -104,7 +104,7 @@ val DEPENDENCIES = listOf(
   "io.opentelemetry.contrib:opentelemetry-gcp-resources:${otelContribVersion}",
   "io.opentelemetry.proto:opentelemetry-proto:1.3.1-alpha",
   "io.opentelemetry:opentelemetry-extension-annotations:1.18.0", // deprecated, no longer part of bom
-  "org.assertj:assertj-core:3.25.3",
+  "org.assertj:assertj-core:3.26.0",
   "org.awaitility:awaitility:4.2.1",
   "com.google.code.findbugs:annotations:3.0.1u2",
   "com.google.code.findbugs:jsr305:3.0.2",

+ 1 - 1
examples/distro/gradle/instrumentation.gradle

@@ -25,7 +25,7 @@ dependencies {
   // test dependencies
   testImplementation("io.opentelemetry.javaagent:opentelemetry-testing-common")
   testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
-  testImplementation("org.assertj:assertj-core:3.25.3")
+  testImplementation("org.assertj:assertj-core:3.26.0")
 
   add("codegen", "io.opentelemetry.javaagent:opentelemetry-javaagent-tooling:${versions.opentelemetryJavaagentAlpha}")
   add("muzzleBootstrap", "io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations-support:${versions.opentelemetryJavaagentAlpha}")

+ 1 - 1
gradle-plugins/build.gradle.kts

@@ -41,7 +41,7 @@ dependencies {
 
   implementation("com.github.johnrengelman:shadow:8.1.1")
 
-  testImplementation("org.assertj:assertj-core:3.25.3")
+  testImplementation("org.assertj:assertj-core:3.26.0")
 
   testImplementation(enforcedPlatform("org.junit:junit-bom:5.10.2"))
   testImplementation("org.junit.jupiter:junit-jupiter-api")

+ 3 - 4
instrumentation/rmi/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/rmi/RmiTest.java

@@ -34,7 +34,6 @@ class RmiTest {
   public static final AgentInstrumentationExtension testing =
       AgentInstrumentationExtension.create();
 
-  private static int registryPort;
   private static Registry serverRegistry;
   private static Registry clientRegistry;
 
@@ -42,7 +41,7 @@ class RmiTest {
 
   @BeforeAll
   static void setUp() throws Exception {
-    registryPort = PortUtils.findOpenPort();
+    int registryPort = PortUtils.findOpenPort();
     serverRegistry = LocateRegistry.createRegistry(registryPort);
     clientRegistry = LocateRegistry.getRegistry("localhost", registryPort);
   }
@@ -120,14 +119,14 @@ class RmiTest {
 
     Throwable thrown =
         catchThrowableOfType(
+            IllegalStateException.class,
             () ->
                 testing.runWithSpan(
                     "parent",
                     () -> {
                       Greeter client = (Greeter) clientRegistry.lookup(Server.RMI_ID);
                       client.exceptional();
-                    }),
-            IllegalStateException.class);
+                    }));
 
     assertThat(testing.waitForTraces(1))
         .satisfiesExactly(