3030import io .opentelemetry .sdk .trace .SdkTracerProvider ;
3131import io .opentelemetry .sdk .trace .data .SpanData ;
3232import io .opentelemetry .sdk .trace .export .SimpleSpanProcessor ;
33- import java .io .IOException ;
3433import java .net .URI ;
3534import java .util .List ;
3635import java .util .function .Supplier ;
4443import org .junit .jupiter .params .provider .Arguments ;
4544import org .junit .jupiter .params .provider .ArgumentsProvider ;
4645import org .junit .jupiter .params .provider .ArgumentsSource ;
46+ import org .junit .jupiter .params .support .ParameterDeclarations ;
4747
4848/** Integration tests for the B3 propagators, in various configurations. */
4949class B3PropagationIntegrationTest {
@@ -161,7 +161,7 @@ void shutdown() {
161161
162162 @ ParameterizedTest
163163 @ ArgumentsSource (WebClientArgumentSupplier .class )
164- void propagation (String testType , WebClient client ) throws IOException {
164+ void propagation (String testType , WebClient client ) {
165165 OpenTelemetrySdk clientSdk = setupClient ();
166166
167167 Span span = clientSdk .getTracer ("testTracer" ).spanBuilder ("clientSpan" ).startSpan ();
@@ -182,7 +182,7 @@ void propagation(String testType, WebClient client) throws IOException {
182182
183183 @ ParameterizedTest
184184 @ ArgumentsSource (WebClientArgumentSupplier .class )
185- void noClientTracing (String testType , WebClient client ) throws IOException {
185+ void noClientTracing (String testType , WebClient client ) {
186186 assertThat (client .get ("/frontend" ).aggregate ().join ().contentUtf8 ()).isEqualTo ("OK" );
187187
188188 List <SpanData > finishedSpanItems = spanExporter .getFinishedSpanItems ();
@@ -237,7 +237,7 @@ public String get(@Nullable HttpRequest carrier, String key) {
237237
238238 public static class WebClientArgumentSupplier implements ArgumentsProvider {
239239 @ Override
240- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
240+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters , ExtensionContext context ) {
241241 return Stream .of (
242242 Arguments .of ("b3multi" , b3MultiClient ), Arguments .of ("b3single" , b3SingleClient ));
243243 }
0 commit comments