BAEL-7503 improvement to JUnit vs TestNG comparison article

Use @Disabled and not @Ignore in JUnit5
This commit is contained in:
Thibault Faure 2024-01-25 22:33:49 +01:00
parent 25c40ac1ca
commit 8356dc6ba2
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
public class SummationServiceUnitTest {
@ -43,7 +44,7 @@ public class SummationServiceUnitTest {
Assert.assertEquals(6, sum);
}
@Ignore
@Disabled
@Test
public void givenEmptyList_sumEqualsZero_thenCorrect() {
int sum = numbers.stream()