From 41d3bfd8c76f9b81afc740024ac152cadb9c7cf7 Mon Sep 17 00:00:00 2001 From: wellbeing-dough Date: Tue, 19 Sep 2023 22:07:40 +0900 Subject: [PATCH] =?UTF-8?q?[HotFix]=20:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/StudyPostRepositoryTest.java | 43 ------------------- 1 file changed, 43 deletions(-) delete mode 100644 src/test/java/kr/co/studyhubinu/studyhubserver/study/repository/StudyPostRepositoryTest.java diff --git a/src/test/java/kr/co/studyhubinu/studyhubserver/study/repository/StudyPostRepositoryTest.java b/src/test/java/kr/co/studyhubinu/studyhubserver/study/repository/StudyPostRepositoryTest.java deleted file mode 100644 index e55a3c51..00000000 --- a/src/test/java/kr/co/studyhubinu/studyhubserver/study/repository/StudyPostRepositoryTest.java +++ /dev/null @@ -1,43 +0,0 @@ -package kr.co.studyhubinu.studyhubserver.study.repository; - -import kr.co.studyhubinu.studyhubserver.study.domain.StudyPostEntity; -import kr.co.studyhubinu.studyhubserver.study.enums.StudyWayType; -import kr.co.studyhubinu.studyhubserver.user.enums.GenderType; -import kr.co.studyhubinu.studyhubserver.user.enums.MajorType; -import org.assertj.core.api.Assertions; -import org.junit.jupiter.api.Test; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.context.SpringBootTest; - -import java.time.LocalDate; - -@SpringBootTest -class StudyPostRepositoryTest { - - @Autowired - private StudyPostRepository studyPostRepository; - - @Test - void 게시글_저장_테스트() { - // given - StudyPostEntity studyPost = StudyPostEntity.builder() - .studyPerson(10) - .studyStartDate(LocalDate.now()) - .studyEndDate(LocalDate.now()) - .major(MajorType.COMPUTER_SCIENCE_ENGINEERING) - .studyWay(StudyWayType.CONTACT) - .title("정보처리기사") - .filteredGender(GenderType.MALE) - .chatUrl("asdasda.com") - .content("안녕") - .penalty(10000) - .build(); - - // when - StudyPostEntity studyPost1 = studyPostRepository.save(studyPost); - - //then - Assertions.assertThat(studyPost).isEqualTo(studyPost1); - } - -} \ No newline at end of file