title: Restassured Testing Reactive Quarkus blocking in IO thread
body: <p>I have a quarkus application that I am trying to test using Restassured
  I am however getting this error when testing:</p>
  <p><code>[org.jbo.res.rea.ser.cor.RuntimeExceptionMapper] (vert.x-eventloop-thread-1) A blocking operation occurred on the IO thread. This likely means you need to annotate my.package.MyController#update(class my.package.MyRequestDto) with @io.smallrye.common.annotation.Blocking. Alternatively you can annotate the class my.package.MyController to make every method on the class blocking, or annotate your sub class of the javax.ws.rs.core.Application class to make the whole application blocking</code></p>
  <p>If i run this application and test manually using postman this does not seem to happen so it is a matter of test setup that seems to be the issue.</p>
  <p>My test is as follows:</p>
  <pre><code>@QuarkusTest
  public class MyTest {
    @Test
    @TestReactiveTransaction
    public void test_A() {
                Response response = given()
                        .when()
                        .accept(MediaTypes.JSON_TYPE)
                        .contentType(MediaTypes.JSON_TYPE)
                        .body(&quot;{myRequestJsonHere}&quot;)
                        .patch(&quot;/path/to/api&quot;)
                        .then()
                        .extract().response();
        // asserts
  
    }
  }
  </code></pre>
  <p>Inside my controller:</p>
  <pre><code>@Path(&quot;/path/to/api&quot;)
  @ApplicationScoped
  public class MyController{
    @Inject MyService service;
  
    @PATCH
    public Uni&lt;MyResultType&gt; update(@NotNull @RequestBody @Valid MyRequestDto request) {
       return service.update(request);
    }
  }
  </code></pre>
  <p>My service:</p>
  <pre><code>@ApplicationScoped
  public class MyService {
    @Inject MyRepository repository;
  
    @Transactional
    public Uni&lt;MyResultType&gt; update(MyRequestDto request) {
      return repository.findAll().firstResult()
         .onItem().transform(l -&gt; mapping here))
         .flatMap(repository::persistAndFlush);
    }
  }
  </code></pre>
  <p>My repository:</p>
  <pre><code>public interface MyRepository extends PanacheRepository&lt;MyResultType&gt; {
  }
  </code></pre>
  <p>I have also tried wrapping the full test content in a <code>UniAsserter.execute(() -&gt; {  });</code> but still got the same issue.</p>
  <p>Is there some more setup I need to do to ensure the thread is used properly?</p>