From d8b5550595fde5463a60673594ee62c5c69c88bf Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Mon, 15 Dec 2025 16:27:46 +0800 Subject: [PATCH] add userprofile test --- .../src/test/java/user/UserProfileTest.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 rc-service/rc-service-other/other-start/src/test/java/user/UserProfileTest.java diff --git a/rc-service/rc-service-other/other-start/src/test/java/user/UserProfileTest.java b/rc-service/rc-service-other/other-start/src/test/java/user/UserProfileTest.java new file mode 100644 index 00000000..41d3469d --- /dev/null +++ b/rc-service/rc-service-other/other-start/src/test/java/user/UserProfileTest.java @@ -0,0 +1,25 @@ +package user; + +import com.red.circle.OtherServiceApplication; +import com.red.circle.framework.dto.ResultResponse; +import com.red.circle.other.inner.endpoint.user.user.UserProfileClient; +import com.red.circle.other.inner.model.dto.user.UserProfileDTO; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@SpringBootTest(classes = OtherServiceApplication.class) +@RunWith(SpringRunner.class) +public class UserProfileTest { + + @Autowired + private UserProfileClient userProfileClient; + + @Test + public void userProfileTest(){ + ResultResponse byUserId = userProfileClient.getByUserId(1999166404179394561L); + } + +}