aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/fr
diff options
context:
space:
mode:
authorpacien2018-01-14 00:52:04 +0100
committerpacien2018-01-14 00:52:40 +0100
commit6dacfafcff2bf4fa0ef3779f48360e93319b00ed (patch)
tree89019b444c46c959d137b9c83188aa8c66d6ce4a /src/test/java/fr
parentf11d73b61282ca6a2f2574e7ad3d7d46f9ca1f52 (diff)
parent2dca13f521abc1328c932e5df32c20e9eb167e86 (diff)
downloadwallj-6dacfafcff2bf4fa0ef3779f48360e93319b00ed.tar.gz
Implement path finder
Signed-off-by: pacien <pacien.trangirard@pacien.net>
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