From a6518f6c88d0143d05e122c094a882dc79037a59 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Mon, 19 Aug 2024 16:53:26 +0100 Subject: [PATCH] Ignore config documentation in tests --- .../deployment/InterfaceConfigPropertiesTest.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/hocon/deployment/src/test/java/io/quarkus/config/hocon/deployment/InterfaceConfigPropertiesTest.java b/hocon/deployment/src/test/java/io/quarkus/config/hocon/deployment/InterfaceConfigPropertiesTest.java index c2d7eba..045c1d8 100644 --- a/hocon/deployment/src/test/java/io/quarkus/config/hocon/deployment/InterfaceConfigPropertiesTest.java +++ b/hocon/deployment/src/test/java/io/quarkus/config/hocon/deployment/InterfaceConfigPropertiesTest.java @@ -11,6 +11,7 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; +import io.quarkus.runtime.annotations.ConfigDocIgnore; import io.quarkus.test.QuarkusUnitTest; import io.smallrye.config.ConfigMapping; import io.smallrye.config.WithDefault; @@ -48,25 +49,32 @@ public static class DummyBean { @ConfigMapping(prefix = "sql") public interface SqlConfiguration { - @WithName("max_pool_size") @WithDefault("50") + @ConfigDocIgnore int maxPoolSize(); @WithName("max_idle_time_seconds") @WithDefault("100") + @ConfigDocIgnore int maxIdleTimeSeconds(); + @ConfigDocIgnore String name(); + @ConfigDocIgnore String user(); + @ConfigDocIgnore String password(); + @ConfigDocIgnore Type type(); + @ConfigDocIgnore List supportedVars(); + @ConfigDocIgnore Map customConfigs(); enum Type { @@ -76,5 +84,4 @@ enum Type { DEFAULT_TYPE } } - }