<dependencies>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>5.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.junit.vintage.engine.junit5.JUnitVintage;
import static org.junit.Assert.assertEquals;
@RunWith(JUnitVintage.class)
public class VintageTests {
@Test
public void testVintageAssertion() {
assertEquals(2, 1 + 1);
}
}