### Question:
PropServerConfiguration implements ServerConfiguration { @Override public HttpServerConfiguration getHttpServerConfiguration() { return httpServerConfiguration; } PropServerConfiguration(String root, Properties properties); @Override CairoConfiguration getCairoConfiguration(); @Override HttpServerConfiguration getHttpServerConfiguration(); @Override LineUdpReceiverConfiguration getLineUdpReceiverConfiguration(); @Override LineTcpReceiverConfiguration getLineTcpReceiverConfiguration(); @Override WorkerPoolConfiguration getWorkerPoolConfiguration(); @Override PGWireConfiguration getPGWireConfiguration(); static final String CONFIG_DIRECTORY; }### Answer:
@Test public void testHttpDisabled() throws IOException, ServerConfigurationException, JsonException { try (InputStream is = PropServerConfigurationTest.class.getResourceAsStream("/server-http-disabled.conf")) { Properties properties = new Properties(); properties.load(is); File root = new File(temp.getRoot(), "data"); TestUtils.copyMimeTypes(root.getAbsolutePath()); PropServerConfiguration configuration = new PropServerConfiguration(root.getAbsolutePath(), properties); Assert.assertFalse(configuration.getHttpServerConfiguration().isEnabled()); } }
@Test public void testSetZeroKeepAlive() throws IOException, ServerConfigurationException, JsonException { try (InputStream is = PropServerConfigurationTest.class.getResourceAsStream("/server-keep-alive.conf")) { Properties properties = new Properties(); properties.load(is); File root = new File(temp.getRoot(), "data"); TestUtils.copyMimeTypes(root.getAbsolutePath()); PropServerConfiguration configuration = new PropServerConfiguration(root.getAbsolutePath(), properties); Assert.assertNull(configuration.getHttpServerConfiguration().getStaticContentProcessorConfiguration().getKeepAliveHeader()); } }