You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[source,java]
----
@QuarkusTest
public class GreetingResourceTest {
@InjectMock
@RestClient // <1>
GreetingService greetingService;
@Test
public void testHelloEndpoint() {
Mockito.when(greetingService.hello()).thenReturn("hello from mockito");
given()
.when().get("/hello")
.then()
.statusCode(200)
.body(is("hello from mockito"));
}
}
----
<1> We need to use the @RestClient CDI qualifier, since Quarkus creates the GreetingService bean with this qualifier.
the callout is rendered as <b class="conum">(1)</b> instead of <b class="conum">(1)</b>
The text was updated successfully, but these errors were encountered:
in a doc with
the callout is rendered as
<b class="conum">(1)</b>
instead of<b class="conum">(1)</b>
The text was updated successfully, but these errors were encountered: