@Test void mapping() { final Server server = ServerMapping.getServer(); assertEquals("localhost", server.host()); assertEquals(8080, server.port()); assertEquals(Duration.ofSeconds(60), server.timeout()); assertEquals(200, server.threads()); assertEquals("login.html", server.form().get("login-page")); assertEquals("error.html", server.form().get("error-page")); assertEquals("index.html", server.form().get("landing-page")); assertTrue(server.ssl().isPresent()); assertEquals(8443, server.ssl().get().port()); assertEquals(Stream.of("TLSv1.3", "TLSv1.2").collect(toList()), server.ssl().get().protocols()); assertFalse(server.proxy().isPresent()); assertFalse(server.log().enabled()); assertEquals(".log", server.log().suffix()); assertTrue(server.log().rotate()); assertEquals(Server.Log.Pattern.COMMON, server.log().pattern()); }
public static Server getServer() { SmallRyeConfig config = (SmallRyeConfig) ConfigProvider.getConfig(); return config.getConfigMapping(Server.class); }
ServerMapping { public static Server getServer() { SmallRyeConfig config = (SmallRyeConfig) ConfigProvider.getConfig(); return config.getConfigMapping(Server.class); } }
ServerMapping { public static Server getServer() { SmallRyeConfig config = (SmallRyeConfig) ConfigProvider.getConfig(); return config.getConfigMapping(Server.class); }  }
ServerMapping { public static Server getServer() { SmallRyeConfig config = (SmallRyeConfig) ConfigProvider.getConfig(); return config.getConfigMapping(Server.class); }  static Server getServer(); }
ServerMapping { public static Server getServer() { SmallRyeConfig config = (SmallRyeConfig) ConfigProvider.getConfig(); return config.getConfigMapping(Server.class); }  static Server getServer();  }