- Fixed assertAll code

This commit is contained in:
amedviediev 2016-05-21 16:25:09 +03:00
parent f7176e6255
commit c4fdeee352
1 changed files with 5 additions and 5 deletions

View File

@ -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