Skip to content

Commit

Permalink
config-mapping mocking docs need @InjectMock
Browse files Browse the repository at this point in the history
In the mocking section it says that the `Server` can be injected as a mock into a Quarkus test class with `@InjectMock`, yet the following code snippet just shows `@Inject`.
  • Loading branch information
edeandrea authored Aug 16, 2021
1 parent f5a0fd8 commit 34b461f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/config-mappings.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ The `Server` can be injected as a mock into a Quarkus test class with `@InjectMo
----
@QuarkusTest
class ServerMockTest {
@Inject
@InjectMock
Server server;
@Test
Expand Down

0 comments on commit 34b461f

Please sign in to comment.