@Test public void returnsSimpleMetricManager_whenParameterizedMetricsAreNull() { assertThat(factory.buildMetricClassManager(METRICS, null)).isInstanceOf(SimpleMetricClassManager.class); }
@SuppressWarnings("rawtypes") public MetricClassManager buildMetricClassManager(final Collection<String> metrics, final Map<String, Map> parameterizedMetrics) { final MetricClassManager metricClassManager; if (parameterizedMetrics == null || parameterizedMetrics.isEmpty()) { metricClassManager = new SimpleMetricClassManager(metrics); } else { metricClassManager = new ParameterizedMetricClassManager(metrics, parameterizedMetrics); } return metricClassManager; }
MetricClassConfigurationManager { @SuppressWarnings("rawtypes") public MetricClassManager buildMetricClassManager(final Collection<String> metrics, final Map<String, Map> parameterizedMetrics) { final MetricClassManager metricClassManager; if (parameterizedMetrics == null || parameterizedMetrics.isEmpty()) { metricClassManager = new SimpleMetricClassManager(metrics); } else { metricClassManager = new ParameterizedMetricClassManager(metrics, parameterizedMetrics); } return metricClassManager; } }
MetricClassConfigurationManager { @SuppressWarnings("rawtypes") public MetricClassManager buildMetricClassManager(final Collection<String> metrics, final Map<String, Map> parameterizedMetrics) { final MetricClassManager metricClassManager; if (parameterizedMetrics == null || parameterizedMetrics.isEmpty()) { metricClassManager = new SimpleMetricClassManager(metrics); } else { metricClassManager = new ParameterizedMetricClassManager(metrics, parameterizedMetrics); } return metricClassManager; }  }
MetricClassConfigurationManager { @SuppressWarnings("rawtypes") public MetricClassManager buildMetricClassManager(final Collection<String> metrics, final Map<String, Map> parameterizedMetrics) { final MetricClassManager metricClassManager; if (parameterizedMetrics == null || parameterizedMetrics.isEmpty()) { metricClassManager = new SimpleMetricClassManager(metrics); } else { metricClassManager = new ParameterizedMetricClassManager(metrics, parameterizedMetrics); } return metricClassManager; }  static MetricClassConfigurationManager getInstance(); @SuppressWarnings("rawtypes") MetricClassManager buildMetricClassManager(final Collection<String> metrics, final Map<String, Map> parameterizedMetrics); BigDecimal getDefaultMaximumGrade(); MetricClassConfigurationManager setDefaultMaximumGrade(final float defaultMaximumGrade); BigDecimal getDefaultMissingGrade(); MetricClassConfigurationManager setDefaultMissingGrade(final float defaultMissingGrade); }
MetricClassConfigurationManager { @SuppressWarnings("rawtypes") public MetricClassManager buildMetricClassManager(final Collection<String> metrics, final Map<String, Map> parameterizedMetrics) { final MetricClassManager metricClassManager; if (parameterizedMetrics == null || parameterizedMetrics.isEmpty()) { metricClassManager = new SimpleMetricClassManager(metrics); } else { metricClassManager = new ParameterizedMetricClassManager(metrics, parameterizedMetrics); } return metricClassManager; }  static MetricClassConfigurationManager getInstance(); @SuppressWarnings("rawtypes") MetricClassManager buildMetricClassManager(final Collection<String> metrics, final Map<String, Map> parameterizedMetrics); BigDecimal getDefaultMaximumGrade(); MetricClassConfigurationManager setDefaultMaximumGrade(final float defaultMaximumGrade); BigDecimal getDefaultMissingGrade(); MetricClassConfigurationManager setDefaultMissingGrade(final float defaultMissingGrade);  }