-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5cc0a7a
commit e122f08
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/test/java/cat/udl/eps/softarch/demo/steps/StepRegisterAdoption.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package cat.udl.eps.softarch.demo.steps; | ||
|
||
import cat.udl.eps.softarch.demo.domain.Pet; | ||
import cat.udl.eps.softarch.demo.domain.User; | ||
import io.cucumber.java.en.And; | ||
import io.cucumber.java.en.Given; | ||
import io.cucumber.java.en.Then; | ||
import io.cucumber.java.en.When; | ||
|
||
public class StepRegisterAdoption { | ||
private Pet pet; | ||
|
||
private User user; | ||
|
||
@Given("The user is logged in with username \"username\" and password \"password\"") | ||
public void userLogged(String username, String password) { | ||
|
||
} | ||
|
||
@And("The Pet with id \"id\" exists and is not adopted") | ||
public void existingPet (String id, Boolean isAdopted) { | ||
|
||
} | ||
|
||
@When("The user adopts the Pet with id \"id\"") | ||
public void adopt(User user, Pet pet) { | ||
|
||
} | ||
|
||
@Then("The Pet with id \"id\" should be marked as adopted") | ||
public void petAdopted(Pet pet) { | ||
|
||
} | ||
} |