ConfigUtil { public int getLoadConfigQPS() { return loadConfigQPS; } ConfigUtil(); String getAppId(); String getAccessKeySecret(); String getDataCenter(); String getCluster(); Env getApolloEnv(); String getLocalIp(); String getMetaServerDomainName(); int getConnectTimeout(); int getReadTimeout(); int getRefreshInterval(); TimeUnit getRefreshIntervalTimeUnit(); int getLoadConfigQPS(); int getLongPollQPS(); long getOnErrorRetryInterval(); TimeUnit getOnErrorRetryIntervalTimeUnit(); String getDefaultLocalCacheDir(); boolean isInLocalMode(); boolean isOSWindows(); long getMaxConfigCacheSize(); long getConfigCacheExpireTime(); TimeUnit getConfigCacheExpireTimeUnit(); long getLongPollingInitialDelayInMills(); boolean isAutoUpdateInjectedSpringPropertiesEnabled(); boolean isPropertiesOrderEnabled();  }
@Test public void testCustomizeLoadConfigQPS() throws Exception { int someQPS = 1; System.setProperty("apollo.loadConfigQPS", String.valueOf(someQPS)); ConfigUtil configUtil = new ConfigUtil(); assertEquals(someQPS, configUtil.getLoadConfigQPS()); }
@Test public void testCustomizeInvalidLoadConfigQPS() throws Exception { String someInvalidQPS = "a"; System.setProperty("apollo.loadConfigQPS", someInvalidQPS); ConfigUtil configUtil = new ConfigUtil(); assertTrue(configUtil.getLoadConfigQPS() > 0); }