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

com.tngtech.jgiven.tests.TestWithExceptionsInAfterMethod Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.tngtech.jgiven.tests;

import org.junit.After;
import org.junit.Test;

import com.tngtech.jgiven.junit.ScenarioTest;

public class TestWithExceptionsInAfterMethod extends ScenarioTestForTesting {

    @After
    public void afterException() {
        throw new IllegalStateException( "exception in after method" );
    }

    @Test
    public void test_that_exception_in_scenario_is_not_hidden_by_exception_in_JUnit_after_method() {
        given().nothing();
        when().a_step_fails();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy