BAEL-900 Guide to Dynamic Tests in Junit 5 (#1883)
* BAEL-900 Guide to dynamic tests in Junit 5 * BAEL-900 Guide to Dynamic Tests in Junit 5 * Revert "BAEL-900 Guide to Dynamic Tests in Junit 5" This reverts commit d0d45c9067223347da20d0f2c80de391fcade38e. * BAEL-900 Guide to Dynamic Tests in Junit 5
This commit is contained in:
parent
e09ba8e3c2
commit
d1cc70666e
@ -1,7 +1,7 @@
|
|||||||
package com.baeldung;
|
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.assertEquals;
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@ -100,9 +100,9 @@ public class DynamicTestsExample {
|
|||||||
DomainNameResolver resolver = new DomainNameResolver();
|
DomainNameResolver resolver = new DomainNameResolver();
|
||||||
|
|
||||||
List<String> inputList =
|
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 =
|
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, () -> {
|
return inputList.stream().map(dom -> DynamicTest.dynamicTest("Resolving: " + dom, () -> {
|
||||||
int id = inputList.indexOf(dom);
|
int id = inputList.indexOf(dom);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user