Skip to content

Commit

Permalink
Merge pull request #19058 from radcortez/config-docs
Browse files Browse the repository at this point in the history
Fix ConfigMapping mock documentation
  • Loading branch information
gsmet authored Aug 2, 2021
2 parents 9b913df + ad7ca52 commit 2e5a2c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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 {
@InjectMock
@Inject
Server server;
@Test
Expand Down Expand Up @@ -489,7 +489,7 @@ public static class AppConfigProducer {
@Produces
@ApplicationScoped
@Mock
@io.quarkus.test.Mock
AppConfig appConfig() {
AppConfig appConfig = config.unwrap(SmallRyeConfig.class).getConfigMapping(AppConfig.class);
AppConfig appConfigSpy = Mockito.spy(appConfig);
Expand All @@ -506,7 +506,7 @@ The `AppConfig` can be injected as a mock into a Quarkus test class with `@Injec
----
@QuarkusTest
class AppConfigTest {
@InjectMock
@Inject
AppConfig appConfig;
@Test
Expand Down

0 comments on commit 2e5a2c7

Please sign in to comment.