Skip to content

Commit

Permalink
fix(be):
Browse files Browse the repository at this point in the history
- Fixed unit tests after recent changes
  • Loading branch information
mamartinezmejia committed Mar 9, 2023
1 parent b552888 commit 96b523e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

public record ClientContactDto(
String contactType,
String name,
String firstName,
String lastName,
String businessPhone,
String email,
int index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ public class SubmissionLocationContactEntity {
@Column("submission_location_id")
private Integer submissionLocationId;

@Column("name_department")
private String nameDepartment;
@Column("first_name")
private String firstName;

@Column("last_name")
private String lastName;

@Column("contact_type_code")
private String contactTypeCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ public class SubmissionLocationEntity {
@Column("postal_code")
private String postalCode;

@Column("business_phone_number")
private String businessPhoneNumber;

@Column("email_address")
private String emailAddress;

Expand Down
4 changes: 2 additions & 2 deletions backend/src/main/java/ca/bc/gov/app/util/ClientMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public static SubmissionLocationEntity mapToSubmissionLocationEntity(
.withProvinceCode(clientAddressDto.province())
.withCityName(clientAddressDto.city())
.withPostalCode(clientAddressDto.postalCode())
.withBusinessPhoneNumber(clientAddressDto.businessPhone())
.withEmailAddress(clientAddressDto.email());
}

Expand All @@ -51,7 +50,8 @@ public static SubmissionLocationContactEntity mapToSubmissionLocationContactEnti
) {
return new SubmissionLocationContactEntity()
.withSubmissionLocationId(submissionLocationId)
.withNameDepartment(clientContactDto.name())
.withFirstName(clientContactDto.firstName())
.withLastName(clientContactDto.lastName())
.withContactTypeCode(clientContactDto.contactType())
.withBusinessPhoneNumber(clientContactDto.businessPhone())
.withEmailAddress(clientContactDto.email());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,12 @@ void shouldSubmitClientData() {
0,
List.of(
new ClientContactDto(
"LP", "James", "007",
"[email protected]", 0))
"LP",
"James",
"Doe",
"007",
"[email protected]",
0))
)))
);
client
Expand Down

0 comments on commit 96b523e

Please sign in to comment.