All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qantium.uisteps.allure.assertions.HardAssert Maven / Gradle / Ivy

The newest version!
package com.qantium.uisteps.allure.assertions;

import com.qantium.uisteps.allure.tests.listeners.StepListener;
import ru.yandex.qatools.allure.annotations.Step;

import static com.qantium.uisteps.allure.tests.listeners.Event.STEP_FAILED;


/**
 * Created by Anton Solyankin
 */
public class HardAssert extends SoftAssert {

    public HardAssert(StepListener listener) {
        super(listener);
    }

    @Step("{0}")
    public void error(String message, Object... args) throws AssertionError {
        getListener().fire(STEP_FAILED, message, args);
        not(false);
        throw new AssertionError(message);

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy