package com.ankurm.testing;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;

/** Fails on purpose. Run it alone: mvn test -Dtest=FailingTestCleanup */
public class FailingTestCleanup {

    @Test
    void failingTest() {
        org.junit.jupiter.api.Assertions.fail("This test is designed to fail");
    }

    @AfterEach
    void alwaysRuns() {
        System.out.println("Cleanup still happens, keeping the environment stable!");
    }
}
