Skip to content

Commit

Permalink
update integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
bhtibrewal committed Dec 30, 2023
1 parent 717f24d commit eae68d5
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ public void testAPIReturns201_OnEndorsementCreation() {
@Test
@DisplayName("Return 400 on endorsements userid null")
public void testAPIReturns400_OnEndorsementCreationUserIdNull() {
UUID userId = null;

UUID skillId = skill.getId();

EndorsementDRO endorsementDRO = new EndorsementDRO();
endorsementDRO.setUserId(userId);

endorsementDRO.setSkillId(skillId);
Response response = given()
.contentType("application/json")
Expand All @@ -196,11 +196,10 @@ public void testAPIReturns400_OnEndorsementCreationUserIdNull() {
@DisplayName("Return 400 on endorsements skillid null")
public void testAPIReturns400_OnEndorsementCreationSkillIdNull() {
UUID userId = user.getId();
UUID skillId = null;

EndorsementDRO endorsementDRO = new EndorsementDRO();
endorsementDRO.setUserId(userId);
endorsementDRO.setSkillId(skillId);

Response response = given()
.contentType("application/json")
.body(endorsementDRO)
Expand Down

0 comments on commit eae68d5

Please sign in to comment.