Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. @Unroll
  2. def 'Initial setup on coordinate #coordinate should have #color color'() {
  3. given:
  4. when:
  5. def initialSetup = PieceFactory.createInitialSetup()
  6.  
  7. then:
  8. def piece = initialSetup
  9. .stream()
  10. .filter({ piece -> piece.getCurrentPosition().equals(coordinate) })
  11. .findAny()
  12. .orElseThrow()
  13. piece.getClass() == classType
  14. piece.getColor() == color
  15.  
  16. where:
  17. coordinate | color
  18. BoardCoordinate.of("A2") | Color.WHITE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement