Skip to content

Instantly share code, notes, and snippets.

@beyondxscratch
Created July 14, 2022 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beyondxscratch/31ba42ac70d88fd747f6bbac5e47d6f2 to your computer and use it in GitHub Desktop.
Save beyondxscratch/31ba42ac70d88fd747f6bbac5e47d6f2 to your computer and use it in GitHub Desktop.
@Test
void groupedAssertions() {
List<String> list = List.of("Programmez", "Magazine", "JUnit");
assertAll(
() -> assertEquals(4, list.size()),
() -> assertTrue(list.contains("Java"))
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment