@Test public void testAddResult() { results.addResult("foo", 0); results.addResult("bar", 10); Assert.assertTrue(results.getResult("foo")); Assert.assertFalse(results.getResult("bar")); Assert.assertNull(results.getResult("baz")); }
void addResult(String testName, int failures) { results.put(testName, failures); }
ArtifactResults { void addResult(String testName, int failures) { results.put(testName, failures); } }
ArtifactResults { void addResult(String testName, int failures) { results.put(testName, failures); } ArtifactResults(Artifact artifact); }
ArtifactResults { void addResult(String testName, int failures) { results.put(testName, failures); } ArtifactResults(Artifact artifact); void setExceptionMessage(String exceptionMessage); @Nullable Boolean getResult(String testName); String getCoordinates(); @Nullable String getExceptionMessage(); int getFailureCount(String testName); }
ArtifactResults { void addResult(String testName, int failures) { results.put(testName, failures); } ArtifactResults(Artifact artifact); void setExceptionMessage(String exceptionMessage); @Nullable Boolean getResult(String testName); String getCoordinates(); @Nullable String getExceptionMessage(); int getFailureCount(String testName);  }