File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
apps/jobboard-backend/src/test/java/org/bounswe/jobboardbackend/profile/service Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ void createProfile_whenValidRequest_returnsProfileResponseDto() {
4545 .firstName ("John" )
4646 .lastName ("Doe" )
4747 .bio ("Test bio" )
48+ .gender ("Test gender" )
4849 .build ();
4950
5051 Profile profile = Profile .builder ()
@@ -53,6 +54,7 @@ void createProfile_whenValidRequest_returnsProfileResponseDto() {
5354 .firstName ("John" )
5455 .lastName ("Doe" )
5556 .bio ("Test bio" )
57+ .gender ("Test gender" )
5658 .build ();
5759
5860 when (userRepository .findById (userId )).thenReturn (Optional .of (user ));
@@ -65,5 +67,6 @@ void createProfile_whenValidRequest_returnsProfileResponseDto() {
6567 assertThat (result .getFirstName ()).isEqualTo ("John" );
6668 assertThat (result .getLastName ()).isEqualTo ("Doe" );
6769 assertThat (result .getBio ()).isEqualTo ("Test bio" );
70+ assertThat (result .getGender ()).isEqualTo ("Test gender" );
6871 }
6972}
You can’t perform that action at this time.
0 commit comments