FaultToleranceConfigManager { public static FaultToleranceConfig getConfig(String appName) { if (appName == null) { return DEFAULT_CFG; } else { FaultToleranceConfig config = APP_CONFIGS.get(appName); return config == null ? DEFAULT_CFG : config; } }  static void putAppConfig(String appName, FaultToleranceConfig value); static boolean isEnable(); static FaultToleranceConfig getConfig(String appName); static long getTimeWindow(String appName); static long getLeastCallCount(String appName); static long getLeastWindowCount(String appName); static double getLeastWindowExceptionRateMultiple(String appName); static double getWeightDegradeRate(String appName); static boolean isRegulationEffective(String appName); static boolean isDegradeEffective(String appName); static int getDegradeLeastWeight(String appName); static double getWeightRecoverRate(String appName); static int getDegradeMaxIpCount(String appName);  }
@Test public void getConfig() throws Exception { Assert.assertNotNull(FaultToleranceConfigManager.getConfig(null)); }