FaultToleranceConfigManager { public static long getLeastCallCount(String appName) { FaultToleranceConfig config = getConfig(appName); return config.getLeastCallCount(); }  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 getLeastCallCount() throws Exception { Assert.assertEquals(FaultToleranceConfigManager.getLeastCallCount(null), defaultConfig.getLeastCallCount()); }