From f1a8916f624bfeb3f95ec6e5b8daadc630c2a2a6 Mon Sep 17 00:00:00 2001 From: KronosDP <darrel.danadyaksa19@gmail.com> Date: Fri, 28 Feb 2025 21:54:15 +0700 Subject: [PATCH] [REFACTOR] Update content posting test to verify response message format --- .../authentication/service/AuthenticationServiceTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/safetypin/authentication/service/AuthenticationServiceTest.java b/src/test/java/com/safetypin/authentication/service/AuthenticationServiceTest.java index 97b3d10..1dbe0c1 100644 --- a/src/test/java/com/safetypin/authentication/service/AuthenticationServiceTest.java +++ b/src/test/java/com/safetypin/authentication/service/AuthenticationServiceTest.java @@ -430,7 +430,7 @@ class AuthenticationServiceTest { user.setSocialId(null); when(userRepository.findByEmail("test@example.com")).thenReturn(user); - String response = authenticationService.postContent("test@example.com", "Content"); - assertEquals("Content posted successfully", response); + String response = authenticationService.postContent("test@example.com", "ThisIsAContent"); + assertEquals("Content 'ThisIsAContent' posted successfully.", response); } } -- GitLab