public class BookSteps
extends java.lang.Object
Constructor and Description |
---|
BookSteps(LibraryApp libraryApp) |
Modifier and Type | Method and Description |
---|---|
void |
iAddTheBook() |
void |
iDonTFindAnyBook() |
void |
iFindABookWithSignaturesAnd(java.lang.String signature1,
java.lang.String signature2) |
void |
iFindTheBookWithSignature(java.lang.String signature) |
void |
iGetTheErrorMessage(java.lang.String errorMessage) |
void |
iHaveABookWithTitleAuthorAndSignature(java.lang.String title,
java.lang.String author,
java.lang.String signature) |
void |
iSearchForTheText(java.lang.String searchText) |
void |
theBookWithTitleAuthorAndSignatureIsAddedToTheLibrary(java.lang.String title,
java.lang.String author,
java.lang.String signature) |
void |
theLibraryHasABookWithTitleAuthorAndSignature(java.lang.String title,
java.lang.String author,
java.lang.String signature) |
public BookSteps(LibraryApp libraryApp)
@Given(value="^I have a book with title \"([^\"]*)\", author \"([^\"]*)\", and signature \"([^\"]*)\"$") public void iHaveABookWithTitleAuthorAndSignature(java.lang.String title, java.lang.String author, java.lang.String signature) throws java.lang.Exception
java.lang.Exception
@When(value="^I add the book$") public void iAddTheBook() throws java.lang.Exception
java.lang.Exception
@Then(value="^the book with title \"([^\"]*)\", author \"([^\"]*)\", and signature \"([^\"]*)\" is added to the library$") public void theBookWithTitleAuthorAndSignatureIsAddedToTheLibrary(java.lang.String title, java.lang.String author, java.lang.String signature) throws java.lang.Exception
java.lang.Exception
@Then(value="^I get the error message \"([^\"]*)\"$") public void iGetTheErrorMessage(java.lang.String errorMessage) throws java.lang.Exception
java.lang.Exception
@Given(value="^the library has a book with title \"([^\"]*)\", author \"([^\"]*)\", and signature \"([^\"]*)\"$") public void theLibraryHasABookWithTitleAuthorAndSignature(java.lang.String title, java.lang.String author, java.lang.String signature) throws java.lang.Exception
java.lang.Exception
@When(value="^I search for the text \"([^\"]*)\"$") public void iSearchForTheText(java.lang.String searchText) throws java.lang.Exception
java.lang.Exception
@Then(value="^I find the book with signature \"([^\"]*)\"$") public void iFindTheBookWithSignature(java.lang.String signature) throws java.lang.Exception
java.lang.Exception
@Then(value="^I don\'t find any book$") public void iDonTFindAnyBook() throws java.lang.Exception
java.lang.Exception
@Then(value="^I find a book with signatures \"([^\"]*)\" and \"([^\"]*)\"$") public void iFindABookWithSignaturesAnd(java.lang.String signature1, java.lang.String signature2) throws java.lang.Exception
java.lang.Exception