- Fixed assertAll code
This commit is contained in:
parent
f7176e6255
commit
c4fdeee352
|
@ -25,11 +25,11 @@ class FirstTest {
|
|||
@Test
|
||||
void groupAssertions() {
|
||||
int[] numbers = {0, 1, 2, 3, 4};
|
||||
assertAll("numbers", () -> {
|
||||
assertEquals(numbers[0], 1);
|
||||
assertEquals(numbers[3], 3);
|
||||
assertEquals(numbers[4], 1);
|
||||
});
|
||||
assertAll("numbers",
|
||||
() -> assertEquals(numbers[0], 1),
|
||||
() -> assertEquals(numbers[3], 3),
|
||||
() -> assertEquals(numbers[4], 1)
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue