@Test void propertyNames() throws Exception { SmallRyeConfig config = new SmallRyeConfigBuilder() .withSources(new YamlConfigSource("yaml", YamlConfigSourceTest.class.getResourceAsStream("/example.yml"))) .withConverter(Users.class, 100, new UserConverter()) .build(); final List<String> propertyNames = StreamSupport.stream(config.getPropertyNames().spliterator(), false) .collect(toList()); assertTrue(propertyNames.contains("quarkus.http.port")); assertTrue(propertyNames.contains("quarkus.http.ssl-port")); assertTrue(propertyNames.contains("quarkus.http.ssl.protocols")); assertFalse(propertyNames.contains("quarkus.http.ssl.protocols.[0]")); assertEquals("TLSv1.2", config.getRawValue("quarkus.http.ssl.protocols.[0]")); assertFalse(propertyNames.contains("quarkus.http.ssl.protocols.[1]")); assertEquals("TLSv1.3", config.getRawValue("quarkus.http.ssl.protocols.[1]")); }
@Override public Set<String> getPropertyNames() { return propertyNames; }
YamlConfigSource extends MapBackedConfigSource { @Override public Set<String> getPropertyNames() { return propertyNames; } }
YamlConfigSource extends MapBackedConfigSource { @Override public Set<String> getPropertyNames() { return propertyNames; } YamlConfigSource(String name, Map<String, String> source, int ordinal);  YamlConfigSource(String name, InputStream stream);  YamlConfigSource(String name, InputStream stream, int defaultOrdinal);  YamlConfigSource(String name, String source);  YamlConfigSource(String name, String source, int ordinal); }
YamlConfigSource extends MapBackedConfigSource { @Override public Set<String> getPropertyNames() { return propertyNames; } YamlConfigSource(String name, Map<String, String> source, int ordinal);  YamlConfigSource(String name, InputStream stream);  YamlConfigSource(String name, InputStream stream, int defaultOrdinal);  YamlConfigSource(String name, String source);  YamlConfigSource(String name, String source, int ordinal); @Override Set<String> getPropertyNames(); }
YamlConfigSource extends MapBackedConfigSource { @Override public Set<String> getPropertyNames() { return propertyNames; } YamlConfigSource(String name, Map<String, String> source, int ordinal);  YamlConfigSource(String name, InputStream stream);  YamlConfigSource(String name, InputStream stream, int defaultOrdinal);  YamlConfigSource(String name, String source);  YamlConfigSource(String name, String source, int ordinal); @Override Set<String> getPropertyNames();  }