Junit 5 question: I order to call junit 5 I have t...
# announcements
j
Junit 5 question: I order to call junit 5 I have to do this:
Copy code
assertAll(
            Executable { assertEquals(NAME, returned.name, "Expect field name to be set") },
            Executable { assertEquals(VLAN_IDS, returned.vlanIds, "Expect field vlanIds to be set") })
Where assertAll has this signature:
Copy code
/**
	 * <em>Asserts</em> that <em>all</em> supplied {@code executables} do not throw an
	 * {@link AssertionError}.
	 *
	 * <p>See Javadoc for {@link #assertAll(String, Stream)} for an explanation of this
	 * method's exception handling semantics.
	 *
	 * @see #assertAll(String, Executable...)
	 * @see #assertAll(Stream)
	 * @see #assertAll(String, Stream)
	 */
	@API(Experimental)
	public static void assertAll(Executable... executables) throws MultipleFailuresError {
		AssertAll.assertAll(executables);
	}
Executable
is a java 8 functional interface. Is there a better way to call
assertAll
?
👍 1