Skip to content

Commit

Permalink
first step Register Adoption
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardmallol committed Mar 6, 2024
1 parent 5cc0a7a commit e122f08
Showing 1 changed file with 34 additions and 0 deletions.
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) {

}
}

0 comments on commit e122f08

Please sign in to comment.