Skip to content

Commit

Permalink
Removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
martingrossmann committed Nov 7, 2024
1 parent b80135b commit 5a7fc59
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,6 @@ public void onMethodEnd(MethodEndEvent event) {
testResult.setStatus(ITestResult.FAILURE);
methodContext.setStatus(Status.FAILED);
}
// StringBuilder sb = new StringBuilder();
// sb.append("The following assertions failed in dataprovider method ");
// sb.append(testResult.getMethod().getDataProviderMethod().getMethod().getName());
// sb.append(":");
// AtomicInteger i = new AtomicInteger();
// methodContext.readErrors()
//// .filter(ErrorContext::isNotOptional)
// .forEach(errorContext -> {
// i.incrementAndGet();
// sb.append("\n").append(i).append(") ").append(errorContext.getThrowable().getMessage());
// });
// AssertionError testMethodContainerError = new AssertionError(sb.toString());
// testResult.setThrowable(testMethodContainerError);
} else
// Handle collected assertions if we have more than one
if (testResult.isSuccess() && methodContext.readErrors().anyMatch(ErrorContext::isNotOptional)) {
Expand Down Expand Up @@ -129,7 +116,7 @@ public void onMethodEnd(MethodEndEvent event) {
TestStep failedStep = methodContext.getCurrentTestStep();
methodContext.setFailedStep(failedStep);
} else if (event.isSkipped()) {
// Can be caused by
// Can be caused by failed dataprovider or config methods
methodContext.setStatus(Status.SKIPPED);
} else if (testResult.isSuccess()) {
methodContext.setStatus(Status.PASSED);
Expand Down

0 comments on commit 5a7fc59

Please sign in to comment.