Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@TestFactory
public List<DynamicTest> exampleTestFactory() {
return Arrays.asList(
dynamicTest("Dynamic square " + 2, () -> assertEquals(4, 2 * 2)),//
dynamicTest("Dynamic true " + true, () -> assertTrue(true)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment