Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. You can implement missing steps with the snippets below:
  2.  
  3. @Given("^a book with the title 'One good book', written by 'Anonymous', published in (\\d+) March (\\d+)$")
  4. public void a_book_with_the_title_One_good_book_written_by_Anonymous_published_in_March(int arg1, int arg2) throws Throwable {
  5. // Write code here that turns the phrase above into concrete actions
  6. throw new PendingException();
  7. }
  8.  
  9. @Given("^another book with the title 'Some other book', written by 'Tim Tomson', published in (\\d+) August (\\d+)$")
  10. public void another_book_with_the_title_Some_other_book_written_by_Tim_Tomson_published_in_August(int arg1, int arg2) throws Throwable {
  11. // Write code here that turns the phrase above into concrete actions
  12. throw new PendingException();
  13. }
  14.  
  15. @Given("^another book with the title 'How to cook a dino', written by 'Fred Flintstone', published in (\\d+) January (\\d+)$")
  16. public void another_book_with_the_title_How_to_cook_a_dino_written_by_Fred_Flintstone_published_in_January(int arg1, int arg2) throws Throwable {
  17. // Write code here that turns the phrase above into concrete actions
  18. throw new PendingException();
  19. }
  20.  
  21. @When("^the customer searches for books published between (\\d+) and (\\d+)$")
  22. public void the_customer_searches_for_books_published_between_and(int arg1, int arg2) throws Throwable {
  23. // Write code here that turns the phrase above into concrete actions
  24. throw new PendingException();
  25. }
  26.  
  27. @Then("^(\\d+) books should have been found$")
  28. public void books_should_have_been_found(int arg1) throws Throwable {
  29. // Write code here that turns the phrase above into concrete actions
  30. throw new PendingException();
  31. }
  32.  
  33. @Then("^Book (\\d+) should have the title 'Some other book'$")
  34. public void book_should_have_the_title_Some_other_book(int arg1) throws Throwable {
  35. // Write code here that turns the phrase above into concrete actions
  36. throw new PendingException();
  37. }
  38.  
  39. @Then("^Book (\\d+) should have the title 'One good book'$")
  40. public void book_should_have_the_title_One_good_book(int arg1) throws Throwable {
  41. // Write code here that turns the phrase above into concrete actions
  42. throw new PendingException();
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement