Package ru.yandex.qatools.allure.events

Examples of ru.yandex.qatools.allure.events.TestCaseCanceledEvent


        Failure failure = mockFailureWith(exception, description);

        runListener.testFailure(failure);

        verify(allure).fire(eq(new TestCaseCanceledEvent().withThrowable(exception)));
    }
View Full Code Here


        Throwable throwable = iTestResult.getThrowable();
        if (throwable == null) {
            throwable = new TestException("Test configuration failure");
        }

        getLifecycle().fire(new TestCaseCanceledEvent()
                        .withThrowable(throwable)
        );
        fireFinishTest();
    }
View Full Code Here

        Throwable throwable = iTestResult.getThrowable();
        if (throwable == null) {
            throwable = new SkipException("The test was skipped for some reason");
        }

        getLifecycle().fire(new TestCaseCanceledEvent()
                        .withThrowable(throwable)
        );
        fireFinishTest();
    }
View Full Code Here

        getLifecycle().fire(new TestCaseFinishedEvent());
    }

    public void fireTestCaseFailure(Throwable throwable) {
        if (throwable instanceof AssumptionViolatedException) {
            getLifecycle().fire(new TestCaseCanceledEvent().withThrowable(throwable));
        } else {
            getLifecycle().fire(new TestCaseFailureEvent().withThrowable(throwable));
        }
    }
View Full Code Here

TOP

Related Classes of ru.yandex.qatools.allure.events.TestCaseCanceledEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.