Skip to content

Commit

Permalink
Fix get method in FailureLocation
Browse files Browse the repository at this point in the history
Signed-off-by: André Silva <[email protected]>
  • Loading branch information
andre15silva committed Jan 27, 2021
1 parent b8a8654 commit 8792fb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private List<String> getNPETests() {
// Iterate over failure locations
for (FailureLocation failureLocation : this.getInspector().getJobStatus().getFailureLocations()) {
// NPEEs are errors
Map<String, List<FailureType>> failingMethodsAndFailures = failureLocation.getFailingMethodsAndFailures();
Map<String, List<FailureType>> failingMethodsAndFailures = failureLocation.getErroringMethodsAndFailures();

// Check if test method has an NPE
for (String method : failingMethodsAndFailures.keySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public void addFailingMethod(String failingMethod, FailureType failure) {
}
}

public void addErroringMethod(String erroringMethod, FailureType failures) {
if (this.failingMethods.containsKey(erroringMethod)) {
this.failingMethods.get(erroringMethod).add(failures);
public void addErroringMethod(String erroringMethod, FailureType failure) {
if (this.erroringMethods.containsKey(erroringMethod)) {
this.erroringMethods.get(erroringMethod).add(failure);
} else {
this.failingMethods.put(erroringMethod, Collections.singletonList(failures));
this.erroringMethods.put(erroringMethod, Collections.singletonList(failure));
}
}

Expand Down

0 comments on commit 8792fb5

Please sign in to comment.