From a14ba8b04b12f35246c5f80a93c0313d0cd57abc Mon Sep 17 00:00:00 2001 From: yulmam <70622601+yulmam@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:40:54 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20:=20summary=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/edufocus/edufocus/board/entity/vo/Board.java | 2 +- .../edufocus/edufocus/board/controller/BoardControllerTest.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 backend/src/test/java/com/edufocus/edufocus/board/controller/BoardControllerTest.java diff --git a/backend/src/main/java/com/edufocus/edufocus/board/entity/vo/Board.java b/backend/src/main/java/com/edufocus/edufocus/board/entity/vo/Board.java index 0277c7c..98df363 100644 --- a/backend/src/main/java/com/edufocus/edufocus/board/entity/vo/Board.java +++ b/backend/src/main/java/com/edufocus/edufocus/board/entity/vo/Board.java @@ -70,7 +70,7 @@ public class Board { public ResponseBoardDetailDto makeDetailDto(){ return ResponseBoardDetailDto.builder() .id(id) - .name(user.getEmail()) + .name(user.getName()) .title(title) .content(content) .viewCount(viewCount) diff --git a/backend/src/test/java/com/edufocus/edufocus/board/controller/BoardControllerTest.java b/backend/src/test/java/com/edufocus/edufocus/board/controller/BoardControllerTest.java new file mode 100644 index 0000000..e531369 --- /dev/null +++ b/backend/src/test/java/com/edufocus/edufocus/board/controller/BoardControllerTest.java @@ -0,0 +1,2 @@ +package com.edufocus.edufocus.board.controller;public class BoardControllerTest { +}