Exemple #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void connectorSettingHasItsOwnValues()
        public virtual void ConnectorSettingHasItsOwnValues()
        {
            Config config = Config.builder().withServerDefaults().withSetting((new HttpConnector("http")).address, "localhost:123").build();

            ConfigValue address = config.ConfigValues.SetOfKeyValuePairs().Where(c => c.Key.Equals("dbms.connector.http.address")).Select(DictionaryEntry.getValue).First().orElseThrow(() => new Exception("Setting not present!"));

            assertTrue(address.Deprecated());
            assertEquals("dbms.connector.http.listen_address", address.Replacement());
        }