mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-05 10:13:37 +00:00
* Use java 11 * Use .of - Replace Arrays.asList with List.of - Replace HashSet<>(List.of()) with Set.of * Formatting
This commit is contained in:
1 parent
dd971d8c19
commit
c8a481bb77
37 files changed
+176
-257
No files matched your search
@@ -32,7 +32,6 @@ import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
@@ -50,7 +49,7 @@ import static org.mockito.Mockito.verify;
|
||||
public class PartyMemberTest {
|
||||
|
||||
static Collection<Supplier<PartyMember>[]> dataProvider() {
|
||||
return Arrays.asList(
|
||||
return List.of(
|
||||
new Supplier[]{Hobbit::new},
|
||||
new Supplier[]{Hunter::new},
|
||||
new Supplier[]{Rogue::new},
|
||||
|
||||
Reference in new issue
Block a user