SmellMetrics implements Metrics { @CheckForNull public static final Metric<Serializable> metricFor(final SmellType type) { return SMELL_METRICS_BY_TYPE.get(type); }  @SuppressWarnings("rawtypes") @Override List<Metric> getMetrics(); @CheckForNull static final Metric<Serializable> metricFor(final SmellType type); @CheckForNull static final Metric<Serializable> metricFor(final String metricKey); @CheckForNull static final List<Metric<Serializable>> metrics(); static final String DOMAIN; static final Metric<Long> SMELL_DEBT; static final Metric<Integer> SMELL_COUNT; static final Metric<Integer> SMELL_COUNT_WRONG_LOGIC; static final Metric<Integer> SMELL_COUNT_WRONG_LANGUAGE; static final Metric<Integer> SMELL_COUNT_OVERCOMPLICATED_ALGORITHM; static final Metric<Integer> SMELL_COUNT_ANTI_PATTERN; static final Metric<Integer> SMELL_COUNT_BAD_DESIGN; static final Metric<Integer> SMELL_COUNT_USELESS_TEST; static final Metric<Integer> SMELL_COUNT_MEANINGLESS_COMMENT; static final Metric<Integer> SMELL_COUNT_UNCOMMUNICATIVE_NAME; static final Metric<Integer> SMELL_COUNT_SPECULATIVE_GENERALITY; static final Metric<Integer> SMELL_COUNT_ODDBALL_SOLUTION; static final Metric<Integer> SMELL_COUNT_PRIMITIVES_OBSESSION; static final Metric<Integer> SMELL_COUNT_INDECENT_EXPOSURE; static final Metric<Integer> SMELL_COUNT_SOLUTION_SPRAWL; static final Metric<Integer> SMELL_COUNT_MIDDLE_MAN; static final Metric<Integer> SMELL_COUNT_REFUSED_BEQUEST; static final Metric<Integer> SMELL_COUNT_NON_EXCEPTION; static final Metric<Integer> SMELL_COUNT_HOW_COMMENT; static final Metric<Integer> SMELL_COUNT_MISSING_IMPLEMENTATION; static final Metric<Integer> SMELL_COUNT_MULTIPLE_RESPONSIBILITIES; static final Metric<Integer> SMELL_COUNT_ABBREVIATIONS_USAGE; static final Metric<Integer> SMELL_COUNT_BAD_LOGGING; static final Metric<Integer> SMELL_COUNT_REINVENTED_WHEEL; static final Metric<Integer> SMELL_COUNT_BAD_FRAMEWORK_USAGE; static final Metric<Integer> SMELL_COUNT_MISSING_DOCUMENTATION; static final Metric<Integer> SMELL_COUNT_MISSING_TEST; static final Metric<Integer> SMELL_COUNT_OTHER; static final Metric<Integer> SMELL_COUNT_NON_COMPLIANCE_WITH_STANDARDS; }
@Test @Parameters public void metricFor_should_return_expectedMetric(final SmellType type, final Metric<Integer> expectedMetric) { Assertions.assertThat(SmellMetrics.metricFor(type)) .isEqualTo(expectedMetric); }