From 531f32755bb1717f7efb81b9ebc311a1dd4c5ace Mon Sep 17 00:00:00 2001 From: vedasole Date: Thu, 26 Dec 2024 22:48:46 +0530 Subject: [PATCH] fix(test/appInitializer): update to take username and password for normal test user from application.properties --- .../utility/TestApplicationInitializer.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/vedasole/ekartecommercebackend/utility/TestApplicationInitializer.java b/src/test/java/com/vedasole/ekartecommercebackend/utility/TestApplicationInitializer.java index dcbf0cd..5352b29 100644 --- a/src/test/java/com/vedasole/ekartecommercebackend/utility/TestApplicationInitializer.java +++ b/src/test/java/com/vedasole/ekartecommercebackend/utility/TestApplicationInitializer.java @@ -64,14 +64,13 @@ private void generateUserToken() { } private void insertNormalUser() { - String userEmail = "normal-user@ekart.com"; CustomerDto adminUser = CustomerDto.builder() .customerId(2) - .email(userEmail) + .email(normalUserEmail) .firstName("Normal") .lastName("User") .phoneNumber("1234567890") - .password("normal-user-test-adminPassword") + .password(normalUserPassword) .role(AppConstant.Role.USER) .build(); customerService.createCustomer(adminUser);