@Test void getClientRateLimitOverride() { Config rawConfig = ConfigFactory.load("test.conf"); XConfig config = new XConfig(rawConfig.getConfig("xrpc")); Map<String, List<Double>> configTest = config.getClientRateLimitOverride(); double expected1 = Double.parseDouble("550"); double testVal1 = configTest.get("localhost").get(0); assertEquals(expected1, testVal1); double expected2 = Double.parseDouble("1"); double testVal2 = configTest.get("1.2.3.4").get(0); double expected3 = Double.parseDouble("2"); double testVal3 = configTest.get("1.2.3.4").get(1); assertEquals(expected2, testVal2); assertEquals(expected3, testVal3); }
public Map<String, List<Double>> getClientRateLimitOverride() { return clientRateLimitOverride; }
XConfig { public Map<String, List<Double>> getClientRateLimitOverride() { return clientRateLimitOverride; } }
XConfig { public Map<String, List<Double>> getClientRateLimitOverride() { return clientRateLimitOverride; } XConfig();  XConfig(Config configOverrides); }
XConfig { public Map<String, List<Double>> getClientRateLimitOverride() { return clientRateLimitOverride; } XConfig();  XConfig(Config configOverrides); Map<String, List<Double>> getClientRateLimitOverride(); }
XConfig { public Map<String, List<Double>> getClientRateLimitOverride() { return clientRateLimitOverride; } XConfig();  XConfig(Config configOverrides); Map<String, List<Double>> getClientRateLimitOverride();  }