From ad7ca52b5c92a08889f96dcbadaa948bff5ed428 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Wed, 28 Jul 2021 11:18:49 +0100 Subject: [PATCH] Fix ConfigMapping mock documentation --- docs/src/main/asciidoc/config-mappings.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/main/asciidoc/config-mappings.adoc b/docs/src/main/asciidoc/config-mappings.adoc index f999442889b48..661d63ae496d4 100644 --- a/docs/src/main/asciidoc/config-mappings.adoc +++ b/docs/src/main/asciidoc/config-mappings.adoc @@ -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 @@ -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); @@ -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