@Test public void testGetFailureCount() { results.addResult("foo", 0); results.addResult("bar", 10); Assert.assertEquals(0, results.getFailureCount("foo")); Assert.assertEquals(10, results.getFailureCount("bar")); Assert.assertEquals(0, results.getFailureCount("baz")); }
public int getFailureCount(String testName) { Integer failures = results.get(testName); if (failures == null) { return 0; } return failures; }
ArtifactResults { public int getFailureCount(String testName) { Integer failures = results.get(testName); if (failures == null) { return 0; } return failures; } }
ArtifactResults { public int getFailureCount(String testName) { Integer failures = results.get(testName); if (failures == null) { return 0; } return failures; } ArtifactResults(Artifact artifact); }
ArtifactResults { public int getFailureCount(String testName) { Integer failures = results.get(testName); if (failures == null) { return 0; } return failures; } ArtifactResults(Artifact artifact); void setExceptionMessage(String exceptionMessage); @Nullable Boolean getResult(String testName); String getCoordinates(); @Nullable String getExceptionMessage(); int getFailureCount(String testName); }
ArtifactResults { public int getFailureCount(String testName) { Integer failures = results.get(testName); if (failures == null) { return 0; } return failures; } ArtifactResults(Artifact artifact); void setExceptionMessage(String exceptionMessage); @Nullable Boolean getResult(String testName); String getCoordinates(); @Nullable String getExceptionMessage(); int getFailureCount(String testName);  }