@Test public void testInitCounterThreshold() { List<ComplexityThreshold> complexityThresholds = new ArrayList<ComplexityThreshold>(); complexityThresholds.add(new ComplexityThreshold("Simple", 10.0)); complexityThresholds.add(new ComplexityThreshold("Medium", 30.0)); complexityThresholds.add(new ComplexityThreshold("Complex", 60.0)); complexityThresholds.add(new ComplexityThreshold("Very complex", null)); ComplexityThresholdsUtils.initCounterThreshold(complexityThresholds); Assert.assertEquals(0, complexityThresholds.get(0).getCounter()); Assert.assertEquals(0, complexityThresholds.get(1).getCounter()); Assert.assertEquals(0, complexityThresholds.get(2).getCounter()); Assert.assertEquals(0, complexityThresholds.get(3).getCounter()); }
public static void initCounterThreshold(List<ComplexityThreshold> complexityThresholds) { for (ComplexityThreshold complexityThreshold : complexityThresholds) { complexityThreshold.initializeCounter(); } }
ComplexityThresholdsUtils { public static void initCounterThreshold(List<ComplexityThreshold> complexityThresholds) { for (ComplexityThreshold complexityThreshold : complexityThresholds) { complexityThreshold.initializeCounter(); } } }
ComplexityThresholdsUtils { public static void initCounterThreshold(List<ComplexityThreshold> complexityThresholds) { for (ComplexityThreshold complexityThreshold : complexityThresholds) { complexityThreshold.initializeCounter(); } }  }
ComplexityThresholdsUtils { public static void initCounterThreshold(List<ComplexityThreshold> complexityThresholds) { for (ComplexityThreshold complexityThreshold : complexityThresholds) { complexityThreshold.initializeCounter(); } }  static List<ComplexityThreshold> convertAbacusThresholdsToComplexityThresholds(String[] propertyThresholds); static String convertCyclomaticComplexityToAbacusComplexity(Double cyclomaticComplexity, List<ComplexityThreshold> complexityThresholds); static void initCounterThreshold(List<ComplexityThreshold> complexityThresholds); static String buildComplexityDistributionMeasureValue(List<ComplexityThreshold> complexityThresholds); }
ComplexityThresholdsUtils { public static void initCounterThreshold(List<ComplexityThreshold> complexityThresholds) { for (ComplexityThreshold complexityThreshold : complexityThresholds) { complexityThreshold.initializeCounter(); } }  static List<ComplexityThreshold> convertAbacusThresholdsToComplexityThresholds(String[] propertyThresholds); static String convertCyclomaticComplexityToAbacusComplexity(Double cyclomaticComplexity, List<ComplexityThreshold> complexityThresholds); static void initCounterThreshold(List<ComplexityThreshold> complexityThresholds); static String buildComplexityDistributionMeasureValue(List<ComplexityThreshold> complexityThresholds);  }