aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/fr
diff options
context:
space:
mode:
authorAdam NAILI2018-01-12 01:25:03 +0100
committerAdam NAILI2018-01-12 01:25:03 +0100
commit2dca13f521abc1328c932e5df32c20e9eb167e86 (patch)
tree7ee5f5316aa02f2ec3631a1717fd25f80cb375ce /src/test/java/fr
parent52a87e1d9ffb0b1a0ed45e3af71b0ccc9c05142a (diff)
downloadwallj-2dca13f521abc1328c932e5df32c20e9eb167e86.tar.gz
Successful test for the BoardConverter(finally...)
Diffstat (limited to 'src/test/java/fr')
-rw-r--r--src/test/java/fr/umlv/java/wallj/board/BoardConverterTest.java7
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;
8import java.util.ArrayList; 8import java.util.ArrayList;
9import java.util.LinkedList; 9import java.util.LinkedList;
10import java.util.List; 10import java.util.List;
11import java.util.stream.Collectors;
12import 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