diff options
Diffstat (limited to 'src/test/java/fr')
-rw-r--r-- | src/test/java/fr/umlv/java/wallj/board/BoardConverterTest.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/java/fr/umlv/java/wallj/board/BoardConverterTest.java b/src/test/java/fr/umlv/java/wallj/board/BoardConverterTest.java index ad96ea1..020938e 100644 --- a/src/test/java/fr/umlv/java/wallj/board/BoardConverterTest.java +++ b/src/test/java/fr/umlv/java/wallj/board/BoardConverterTest.java | |||
@@ -8,6 +8,8 @@ import org.junit.jupiter.api.Test; | |||
8 | import java.util.ArrayList; | 8 | import java.util.ArrayList; |
9 | import java.util.LinkedList; | 9 | import java.util.LinkedList; |
10 | import java.util.List; | 10 | import java.util.List; |
11 | import java.util.stream.Collectors; | ||
12 | import java.util.stream.Stream; | ||
11 | 13 | ||
12 | /** | 14 | /** |
13 | * @author Adam NAILI | 15 | * @author Adam NAILI |
@@ -66,8 +68,9 @@ final class BoardConverterTest { | |||
66 | certifiedBlocks.add(BlockFactory.build(BlockType.TRASH,t4)); | 68 | certifiedBlocks.add(BlockFactory.build(BlockType.TRASH,t4)); |
67 | 69 | ||
68 | List<Block> blocks = BoardConverter.boardToWorld(board); | 70 | List<Block> blocks = BoardConverter.boardToWorld(board); |
71 | List<BlockType> blockTypes = blocks.stream().map(Block::getType).collect(Collectors.toList()); | ||
72 | List<BlockType> blockTypesCertified= certifiedBlocks.stream().map(Block::getType).collect(Collectors.toList()); | ||
73 | Assertions.assertEquals(blockTypesCertified,blockTypes); | ||
69 | } | 74 | } |
70 | |||
71 | |||
72 | } | 75 | } |
73 | 76 | ||