Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Given the user is
  2. | firstname | lastname | nationality |
  3. | Roberto | Lo Giacco | Italian |
  4.  
  5. class User {
  6. String firstName;
  7. String lastName;
  8. Nationality nationality;
  9. //getters / setters / etc
  10. }
  11.  
  12. @Given("^the user is$")
  13. public void the_user_is(User user) {
  14. this.user = user;
  15. }
  16.  
  17. Type itemType = listItemType(type);
  18. if (itemType == null) {
  19. throw new CucumberException("Not a Map or List type: " + type);
  20. }
  21.  
  22. @Given("^the user is$")
  23. public void the_user_is(List<User> user) {
  24. this.user = user.get(0);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement