Skip to content

Commit

Permalink
Fix ConfigMapping mock documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Jul 28, 2021
1 parent 6ec78b9 commit ad7ca52
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 ad7ca52

Please sign in to comment.