jlleitschuh
03/17/2017, 5:05 PMassertAll(
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:
/**
* <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
?