ZapUtils { public static Severity riskCodeToSonarQubeSeverity(int riskcode) { if (riskcode == 3) { return Severity.CRITICAL; } else if (riskcode == 2) { return Severity.MAJOR; } else if (riskcode == 1) { return Severity.MINOR; } else { return Severity.INFO; } } private  ZapUtils(); static SMInputFactory newStaxParser(); static Severity riskCodeToSonarQubeSeverity(int riskcode);  }
@Test public void testRiskCodeToSonarQubeSeverity() { assertThat(ZapUtils.riskCodeToSonarQubeSeverity(this.riskCodeSeverity)) .isEqualTo(this.expectedSeverity); }