Skip to content

Commit

Permalink
SSCSCI-1128 (#1652)
Browse files Browse the repository at this point in the history
SSCSCI-1128: Fix name of util function so it doesn't override lombok getter

Co-authored-by: Tom Elliott <[email protected]>
  • Loading branch information
tomxelliott and Tom Elliott authored Oct 16, 2024
1 parent d24aa6f commit faed7df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public boolean isAddressEmpty() {
}

@JsonIgnore
public UkPortOfEntry getPortOfEntry() {
public UkPortOfEntry getUkPortOfEntry() {
return Arrays.stream(UkPortOfEntry.values())
.filter(port -> port.getLocationCode().equalsIgnoreCase(this.portOfEntry))
.findFirst()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void getPortOfEntry_returns_correct_portOfEntry_for_valid_locationCode(Uk
.country("USA")
.isInUk(NO)
.build();
assertEquals(port, address.getPortOfEntry());
assertEquals(port, address.getUkPortOfEntry());
}

@Test
Expand All @@ -156,6 +156,6 @@ public void getPortOfEntry_returns_null_for_invalid_locationCode() {
.country("USA")
.isInUk(NO)
.build();
assertNull(address.getPortOfEntry());
assertNull(address.getUkPortOfEntry());
}
}

0 comments on commit faed7df

Please sign in to comment.