Skip to content

Instantly share code, notes, and snippets.

@vladdedita
Created November 22, 2024 00:06
Show Gist options
  • Save vladdedita/9e02b2533210518204bbd78b751b0176 to your computer and use it in GitHub Desktop.
Save vladdedita/9e02b2533210518204bbd78b751b0176 to your computer and use it in GitHub Desktop.
public class ReportingState {
private final Map<String, String> results = new ConcurrentHashMap<>();
public void addResult(String testName, String result) {
results.put(testName, result);
}
public void report() {
System.out.println("---- Test Results ----");
results.forEach((testName, result) -> {
System.out.println(testName + ": " + result);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment