Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Unroll
- def 'Initial setup on coordinate #coordinate should have #color color'() {
- given:
- when:
- def initialSetup = PieceFactory.createInitialSetup()
- then:
- def piece = initialSetup
- .stream()
- .filter({ piece -> piece.getCurrentPosition().equals(coordinate) })
- .findAny()
- .orElseThrow()
- piece.getClass() == classType
- piece.getColor() == color
- where:
- coordinate | color
- BoardCoordinate.of("A2") | Color.WHITE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement