Skip to content

Commit c10d2a3

Browse files
Merge pull request eugenp#1326 from dhruba619/master
BAEL-701 Intro to TestNG updated src
2 parents fde269c + 42ab317 commit c10d2a3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎testng/src/test/java/com/baeldung/reports/CustomisedListener.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ public class CustomisedListener implements ITestListener {
1010
private static final Logger LOGGER = LoggerFactory.getLogger("TEST_REPORT");
1111

1212
@Override
13-
public void onFinish(ITestContext arg0) {
13+
public void onFinish(ITestContext context) {
1414
LOGGER.info("PASSED TEST CASES");
15-
arg0.getPassedTests()
15+
context.getPassedTests()
1616
.getAllResults()
1717
.stream()
1818
.forEach(result -> {
1919
LOGGER.info(result.getName());
2020
});
2121
LOGGER.info("FAILED TEST CASES");
22-
arg0.getFailedTests()
22+
context.getFailedTests()
2323
.getAllResults()
2424
.stream()
2525
.forEach(result -> {
2626
LOGGER.info(result.getName());
2727
});
28-
LOGGER.info("Test completed on: " + arg0.getEndDate().toString());
28+
LOGGER.info("Test completed on: " + context.getEndDate().toString());
2929
}
3030

3131
@Override

0 commit comments

Comments
 (0)