File tree 5 files changed +7
-8
lines changed
instrumentation/rmi/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/rmi
5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -74,5 +74,5 @@ dependencies {
74
74
testImplementation(enforcedPlatform(" org.junit:junit-bom:5.10.2" ))
75
75
testImplementation(" org.junit.jupiter:junit-jupiter-api" )
76
76
testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine" )
77
- testImplementation(" org.assertj:assertj-core:3.25.3 " )
77
+ testImplementation(" org.assertj:assertj-core:3.26.0 " )
78
78
}
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ val DEPENDENCIES = listOf(
104
104
" io.opentelemetry.contrib:opentelemetry-gcp-resources:${otelContribVersion} " ,
105
105
" io.opentelemetry.proto:opentelemetry-proto:1.3.1-alpha" ,
106
106
" io.opentelemetry:opentelemetry-extension-annotations:1.18.0" , // deprecated, no longer part of bom
107
- " org.assertj:assertj-core:3.25.3 " ,
107
+ " org.assertj:assertj-core:3.26.0 " ,
108
108
" org.awaitility:awaitility:4.2.1" ,
109
109
" com.google.code.findbugs:annotations:3.0.1u2" ,
110
110
" com.google.code.findbugs:jsr305:3.0.2" ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ dependencies {
25
25
// test dependencies
26
26
testImplementation(" io.opentelemetry.javaagent:opentelemetry-testing-common" )
27
27
testImplementation(" io.opentelemetry:opentelemetry-sdk-testing" )
28
- testImplementation(" org.assertj:assertj-core:3.25.3 " )
28
+ testImplementation(" org.assertj:assertj-core:3.26.0 " )
29
29
30
30
add(" codegen" , " io.opentelemetry.javaagent:opentelemetry-javaagent-tooling:${ versions.opentelemetryJavaagentAlpha} " )
31
31
add(" muzzleBootstrap" , " io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations-support:${ versions.opentelemetryJavaagentAlpha} " )
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ dependencies {
41
41
42
42
implementation(" com.github.johnrengelman:shadow:8.1.1" )
43
43
44
- testImplementation(" org.assertj:assertj-core:3.25.3 " )
44
+ testImplementation(" org.assertj:assertj-core:3.26.0 " )
45
45
46
46
testImplementation(enforcedPlatform(" org.junit:junit-bom:5.10.2" ))
47
47
testImplementation(" org.junit.jupiter:junit-jupiter-api" )
Original file line number Diff line number Diff line change @@ -34,15 +34,14 @@ class RmiTest {
34
34
public static final AgentInstrumentationExtension testing =
35
35
AgentInstrumentationExtension .create ();
36
36
37
- private static int registryPort ;
38
37
private static Registry serverRegistry ;
39
38
private static Registry clientRegistry ;
40
39
41
40
@ RegisterExtension final AutoCleanupExtension autoCleanup = AutoCleanupExtension .create ();
42
41
43
42
@ BeforeAll
44
43
static void setUp () throws Exception {
45
- registryPort = PortUtils .findOpenPort ();
44
+ int registryPort = PortUtils .findOpenPort ();
46
45
serverRegistry = LocateRegistry .createRegistry (registryPort );
47
46
clientRegistry = LocateRegistry .getRegistry ("localhost" , registryPort );
48
47
}
@@ -120,14 +119,14 @@ void serviceThrownException() throws Exception {
120
119
121
120
Throwable thrown =
122
121
catchThrowableOfType (
122
+ IllegalStateException .class ,
123
123
() ->
124
124
testing .runWithSpan (
125
125
"parent" ,
126
126
() -> {
127
127
Greeter client = (Greeter ) clientRegistry .lookup (Server .RMI_ID );
128
128
client .exceptional ();
129
- }),
130
- IllegalStateException .class );
129
+ }));
131
130
132
131
assertThat (testing .waitForTraces (1 ))
133
132
.satisfiesExactly (
You can’t perform that action at this time.
0 commit comments