diff options
author | Adam NAILI | 2018-01-12 01:25:03 +0100 |
---|---|---|
committer | Adam NAILI | 2018-01-12 01:25:03 +0100 |
commit | 2dca13f521abc1328c932e5df32c20e9eb167e86 (patch) | |
tree | 7ee5f5316aa02f2ec3631a1717fd25f80cb375ce /src/test | |
parent | 52a87e1d9ffb0b1a0ed45e3af71b0ccc9c05142a (diff) | |
download | wallj-2dca13f521abc1328c932e5df32c20e9eb167e86.tar.gz |
Successful test for the BoardConverter(finally...)
Diffstat (limited to 'src/test')
-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 | ||