Skip to content

Commit

Permalink
fix: listener has been renamed;
Browse files Browse the repository at this point in the history
  • Loading branch information
smansoft committed Jan 6, 2022
1 parent 6c47925 commit d4cb3a7
Showing 1 changed file with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,49 +14,49 @@
* @author Sergey Manoylo
* @version December 29, 2021
*/
public class JansUnitTestsTestsListener implements ITestListener {
@Override
public class JansUnitTestsListener implements ITestListener {

@Override
public void onFinish(ITestContext context) {
}
}

@Override
@Override
public void onStart(ITestContext context) {
}
}

@Override
@Override
public void onTestFailedButWithinSuccessPercentage(ITestResult context) {
}
}

@Override
@Override
public void onTestFailure(ITestResult result) {
Reporter.log("Test FAILED: " + result.getName() + "." + result.getMethod().getMethodName(), true);
Object[] parameters = result.getParameters();
if(parameters != null) {
Reporter.log("Test Parameters: ", true);
Reporter.log("Test Parameters: ", true);
for(Object parameter : parameters) {
Reporter.log("parameter = " + parameter, true);
Reporter.log("parameter = " + parameter, true);
}
}
Throwable throwable = result.getThrowable();
if(throwable != null) {
Reporter.log("", true);
Reporter.log("", true);
Reporter.log("Exception: ", true);
Reporter.log(Throwables.getStackTraceAsString(result.getThrowable()), true);
Reporter.log("", true);
Reporter.log("", true);
}
}
}

@Override
@Override
public void onTestSkipped(ITestResult result) {
}
}

@Override
@Override
public void onTestStart(ITestResult result) {
Reporter.log("Test STARTED: " + result.getName() + "." + result.getMethod().getMethodName(), true);
}
@Override

@Override
public void onTestSuccess(ITestResult result) {
Reporter.log("Test SUCCESS: " + result.getName() + "." + result.getMethod().getMethodName(), true);
Reporter.log("", true);
Expand Down

0 comments on commit d4cb3a7

Please sign in to comment.