content: /*
   * Copyright The OpenTelemetry Authors
   * SPDX-License-Identifier: Apache-2.0
   */
  
  package io.opentelemetry.javaagent.instrumentation.jaxrs.v2_0;
  
  import io.opentelemetry.instrumentation.jaxrs.v2_0.JaxRsJettyHttpServerTest;
  import io.opentelemetry.instrumentation.testing.junit.InstrumentationExtension;
  import io.opentelemetry.instrumentation.testing.junit.http.HttpServerInstrumentationExtension;
  import io.opentelemetry.instrumentation.testing.junit.http.HttpServerTestOptions;
  import org.junit.jupiter.api.extension.RegisterExtension;
  
  class ResteasyJettyHttpServerTest extends JaxRsJettyHttpServerTest {
    @RegisterExtension
    static final InstrumentationExtension testing = HttpServerInstrumentationExtension.forAgent();
  
    @Override
    protected void configure(HttpServerTestOptions options) {
      super.configure(options);
  
      options.setResponseCodeOnNonStandardHttpMethod(500);
    }
  
    // resteasy 3.0.x does not support JAX-RS 2.1
    @Override
    protected boolean shouldTestCompletableStageAsync() {
      return false;
    }
  }
  