Skip to content

Commit

Permalink
Ignore config documentation in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Aug 19, 2024
1 parent a811219 commit a6518f6
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<String> supportedVars();

@ConfigDocIgnore
Map<String, String> customConfigs();

enum Type {
Expand All @@ -76,5 +84,4 @@ enum Type {
DEFAULT_TYPE
}
}

}

0 comments on commit a6518f6

Please sign in to comment.