Skip to content

Commit

Permalink
remove setId for ShelterCertificate
Browse files Browse the repository at this point in the history
  • Loading branch information
diegogliarte committed May 16, 2024
1 parent e1e4f87 commit 3f9c34f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion EntitiesModel.puml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Location {
postalCode: Integer
}

class ShelterCertificate {
class ShelterCertificate extends UriEntity {
id: Long
expirationDate: DateTime
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ public class ShelterCertificate extends UriEntity<Long> {
private Long id;

private LocalDateTime expirationDate;

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public class RegisterShelterCertificateStepDefs {
@When("I register a new shelter certificate with id \"([^\"]*)\" for shelter with name \"([^\"]*)\"$")
public void iRegisterANewShelterCertificateWithIdForShelterWithName(Long id, String shelterName) throws Exception {
ShelterCertificate shelterCertificate = new ShelterCertificate();
shelterCertificate.setId(id);

Shelter shelter = shelterRepository.findByName(shelterName);
shelterCertificate.setShelter(shelter);
Expand Down Expand Up @@ -67,7 +66,6 @@ public void itHasNotBeenCreatedAShelterCertificateWithId(Long id) {
@Given("^There is a registered shelter certificate with id \"([^\"]*)\" for shelter with name \"([^\"]*)\"$")
public void thereIsARegisteredShelterCertificateWithIdForShelterWithName(Long id, String shelterName) {
ShelterCertificate shelterCertificate = new ShelterCertificate();
shelterCertificate.setId(id);

Shelter shelter = shelterRepository.findByName(shelterName);
shelterCertificate.setShelter(shelter);
Expand Down

0 comments on commit 3f9c34f

Please sign in to comment.