Skip to content

Commit d1cc706

Browse files
yasin3061maibin
authored andcommitted
BAEL-900 Guide to Dynamic Tests in Junit 5 (eugenp#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 d0d45c9. * BAEL-900 Guide to Dynamic Tests in Junit 5
1 parent e09ba8e commit d1cc706

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎junit5/src/test/java/com/baeldung/DynamicTestsExample.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.baeldung;
22

3-
import static org.junit.jupiter.api.Assertions.assertTrue;
43
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
import static org.junit.jupiter.api.Assertions.assertTrue;
55

66
import java.util.ArrayList;
77
import java.util.Arrays;
@@ -100,9 +100,9 @@ Stream<DynamicTest> dynamicTestsFromStreamInJava8() {
100100
DomainNameResolver resolver = new DomainNameResolver();
101101

102102
List<String> inputList =
103-
new ArrayList<>(Arrays.asList("www.somedomain.com", "www.anotherdomain.com", "www.yetanotherdomain.com"));
103+
Arrays.asList("www.somedomain.com", "www.anotherdomain.com", "www.yetanotherdomain.com");
104104
List<String> outputList =
105-
new ArrayList<>(Arrays.asList("154.174.10.56", "211.152.104.132", "178.144.120.156"));
105+
Arrays.asList("154.174.10.56", "211.152.104.132", "178.144.120.156");
106106

107107
return inputList.stream().map(dom -> DynamicTest.dynamicTest("Resolving: " + dom, () -> {
108108
int id = inputList.indexOf(dom);

0 commit comments

Comments
 (0)