diff --git a/src/test/java/com/listywave/topic/application/service/TopicServiceTest.java b/src/test/java/com/listywave/topic/application/service/TopicServiceTest.java index e6c8cdb9..7cf2973d 100644 --- a/src/test/java/com/listywave/topic/application/service/TopicServiceTest.java +++ b/src/test/java/com/listywave/topic/application/service/TopicServiceTest.java @@ -32,20 +32,14 @@ class 토픽_생성 { // then List result = topicRepository.findAll(); - Topic expect = Topic.builder() - .user(ej) - .title(new ListTitle("제일 좋아하는 여자 아이돌 TOP3")) - .description(new ListDescription("여러분들은 어떤 여돌을 가장 좋아하나요?")) - .category(DAILYLIFE_THOUGHTS) - .build(); - assertAll( () -> assertThat(result).hasSize(1), () -> { Topic topic = result.get(0); - assertThat(topic).usingRecursiveComparison() - .ignoringFields("id", "createdDate", "updatedDate") - .isEqualTo(expect); + assertThat(topic.getCategory()).isEqualTo(DAILYLIFE_THOUGHTS); + assertThat(topic.getTitle().getValue()).isEqualTo("제일 좋아하는 여자 아이돌 TOP3"); + assertThat(topic.getDescription().getValue()).isEqualTo("여러분들은 어떤 여돌을 가장 좋아하나요?"); + assertThat(topic.isAnonymous()).isFalse(); assertThat(topic.isExposed()).isFalse(); } );