@@ -164,7 +164,7 @@ void shouldRegisterNewUserSuccessfully() {
164164 @ DisplayName ("Should reject registration with disposable email" )
165165 void shouldRejectRegistrationWithDisposableEmail () {
166166 RestUserRegistration userWithDisposableEmail = RestUserRegistration .create (
167- "test@10minutemail.com" , "password123" , "Test" , "User"
167+ "test@10minutemail.com" , "password123" , "Test" , "User" , true
168168 );
169169 HttpHeaders headers = new HttpHeaders ();
170170 headers .setContentType (MediaType .APPLICATION_JSON );
@@ -202,7 +202,7 @@ void shouldRejectRegistrationWithDuplicateEmail() {
202202
203203 // Then try to create duplicate with same email
204204 RestUserRegistration duplicateUser = RestUserRegistration .create (
205- firstUser .getEmail (), "password123" , "Duplicate" , "User"
205+ firstUser .getEmail (), "password123" , "Duplicate" , "User" , true
206206 );
207207 HttpEntity <RestUserRegistration > request2 = new HttpEntity <>(duplicateUser , headers );
208208
@@ -244,7 +244,7 @@ void shouldValidateUserRegistrationInput(RestUserRegistration invalidUser, Strin
244244 private static Stream <Arguments > invalidRegistrationData () {
245245 return Stream .of (
246246 Arguments .of (
247- RestUserRegistration .create ("invalid-email" , "password123" , "Test" , "User" ),
247+ RestUserRegistration .create ("invalid-email" , "password123" , "Test" , "User" , true ),
248248 "Invalid email address"
249249 )
250250 );
@@ -295,7 +295,7 @@ void shouldHandleEmptyRequestBody() {
295295 @ DisplayName ("Should test user registration endpoint exists" )
296296 void registerUserEndpointExists () {
297297 RestUserRegistration testUser = RestUserRegistration .create (
298- "endpoint.test@example.org" , "validpassword123" , "Valid" , "User"
298+ "endpoint.test@example.org" , "validpassword123" , "Valid" , "User" , true
299299 );
300300 HttpHeaders headers = new HttpHeaders ();
301301 headers .setContentType (MediaType .APPLICATION_JSON );
0 commit comments