Skip to content

Commit

Permalink
Create Repository
Browse files Browse the repository at this point in the history
  • Loading branch information
marioferro2002 committed Apr 5, 2024
1 parent 314dddc commit ea1055e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package cat.udl.eps.softarch.demo.repository;

import cat.udl.eps.softarch.demo.domain.Adoption;
import cat.udl.eps.softarch.demo.domain.Location;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface AdoptionRepository extends CrudRepository<Adoption, Long>, PagingAndSortingRepository<Adoption, Long> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public class ProcessAdoptionStepDefs {
@Autowired
PetRepository petRepository;

Adopt

protected ResultActions result;


Expand Down Expand Up @@ -102,6 +104,11 @@ public void thereIsAPetWithNameAndItIsAlreadyAdopted(String arg0) {
pet.setBreed("breed");
petRepository.save(pet);

Adoption adoption = new Adoption();
adoption.setPet(petRepository.findAll().iterator().next());
adoptionR


}


Expand Down

0 comments on commit ea1055e

Please sign in to comment.