Skip to content

Commit a9213fd

Browse files
committed
test(PronounSet): All gender variables and related functions are changed to pronunset.
1 parent 36eb648 commit a9213fd

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

apps/jobboard-backend/src/test/java/org/bounswe/jobboardbackend/profile/repository/ProfileRepositoryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.bounswe.jobboardbackend.profile.repository;
22

3+
import org.bounswe.jobboardbackend.auth.model.PronounSet;
34
import org.bounswe.jobboardbackend.auth.model.Role;
45
import org.bounswe.jobboardbackend.auth.model.User;
56
import org.bounswe.jobboardbackend.auth.repository.UserRepository;
@@ -36,7 +37,7 @@ void findByUserId_whenProfileExists_returnsProfile() {
3637
.firstName("John")
3738
.lastName("Doe")
3839
.bio("Test bio")
39-
.gender("Test gender")
40+
.pronounSet(PronounSet.HE_THEY)
4041
.build();
4142
profileRepository.save(profile);
4243

apps/jobboard-backend/src/test/java/org/bounswe/jobboardbackend/profile/service/ProfileServiceTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.bounswe.jobboardbackend.profile.service;
22

3+
import org.bounswe.jobboardbackend.auth.model.PronounSet;
34
import org.bounswe.jobboardbackend.auth.model.Role;
45
import org.bounswe.jobboardbackend.auth.model.User;
56
import org.bounswe.jobboardbackend.auth.repository.UserRepository;
@@ -45,7 +46,7 @@ void createProfile_whenValidRequest_returnsProfileResponseDto() {
4546
.firstName("John")
4647
.lastName("Doe")
4748
.bio("Test bio")
48-
.gender("Test gender")
49+
.pronounSet("HE_THEY")
4950
.build();
5051

5152
Profile profile = Profile.builder()
@@ -54,7 +55,7 @@ void createProfile_whenValidRequest_returnsProfileResponseDto() {
5455
.firstName("John")
5556
.lastName("Doe")
5657
.bio("Test bio")
57-
.gender("Test gender")
58+
.pronounSet(PronounSet.HE_THEY)
5859
.build();
5960

6061
when(userRepository.findById(userId)).thenReturn(Optional.of(user));
@@ -67,6 +68,6 @@ void createProfile_whenValidRequest_returnsProfileResponseDto() {
6768
assertThat(result.getFirstName()).isEqualTo("John");
6869
assertThat(result.getLastName()).isEqualTo("Doe");
6970
assertThat(result.getBio()).isEqualTo("Test bio");
70-
assertThat(result.getGender()).isEqualTo("Test gender");
71+
assertThat(result.getPronounSet()).isEqualTo("HE_THEY");
7172
}
7273
}

0 commit comments

Comments
 (0)