Guide to Dynamic Tests in Junit 5
* Guide to dynamic tests in Junit 5
* Guide to Dynamic Tests in Junit 5
* Revert "BAEL-900 Guide to Dynamic Tests in Junit 5"
This reverts commit
* Guide to Dynamic Tests in Junit 5
package com.baeldung;
-import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.ArrayList;
import java.util.Arrays;
@@ -100,9 +100,9 @@ public class DynamicTestsExample {
DomainNameResolver resolver = new DomainNameResolver();
List<String> inputList =
- new ArrayList<>(Arrays.asList("www.somedomain.com", "www.anotherdomain.com", "www.yetanotherdomain.com"));
+ Arrays.asList("www.somedomain.com", "www.anotherdomain.com", "www.yetanotherdomain.com");
List<String> outputList =
- new ArrayList<>(Arrays.asList("154.174.10.56", "211.152.104.132", "178.144.120.156"));
+ Arrays.asList("154.174.10.56", "211.152.104.132", "178.144.120.156");
return inputList.stream().map(dom -> DynamicTest.dynamicTest("Resolving: " + dom, () -> {
int id = inputList.indexOf(dom);
