ru.yandex.qatools.allure.events.TestCaseSkippedEvent Maven / Gradle / Ivy
package ru.yandex.qatools.allure.events;
import org.apache.commons.lang3.exception.ExceptionUtils;
import ru.yandex.qatools.allure.model.Failure;
import ru.yandex.qatools.allure.model.Status;
import ru.yandex.qatools.allure.model.TestCaseResult;
/**
* @author Dmitry Baev [email protected]
* Date: 11.11.13
*/
public class TestCaseSkippedEvent extends AbstractTestCaseSkippedEvent {
@Override
public void process(TestCaseResult testCase) {
testCase.setStatus(Status.SKIPPED);
testCase.setFailure(getFailure());
}
private Failure getFailure() {
return new Failure()
.withMessage(ExceptionUtils.getMessage(getThrowable()))
.withStackTrace(ExceptionUtils.getStackTrace(getThrowable()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy