Complete the code to group multiple assertions using assertAll.
assertAll([1]);The assertAll method takes a heading string and a lambda containing multiple assertions grouped together.
Complete the code to group two assertions inside assertAll.
assertAll("Check values", () -> { assertEquals(10, [1]); assertTrue(active); });
The variable sum is the one being checked for equality with 10.
Fix the error in the assertAll usage by completing the blank.
assertAll("Multiple checks", () -> { assertEquals(3, list.size()); [1] });
item without quotes.The assertion must check if the list contains the string "item" using double quotes.
Fill both blanks to correctly group two assertions with assertAll.
assertAll("Group assertions", () -> { [1]; [2]; });
The first blank is an equality check, the second blank checks a boolean condition.
Fill all three blanks to correctly write grouped assertions with assertAll.
assertAll("Test all", () -> { [1]; [2]; [3]; });
The grouped assertions check that the object is not null, count equals 7, and flag is true.
