Skip to content

Commit 42384be

Browse files
committed
test(community): sonarqube 반영
- 이미지 링크와 관련된 test 삭제
1 parent a54e9d1 commit 42384be

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

src/test/java/com/somemore/domains/community/service/board/CreateCommunityBoardServiceTest.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,28 +48,4 @@ void createCommunityWithDto() {
4848
assertThat(communityBoard.get().getTitle()).isEqualTo(dto.title());
4949
assertThat(communityBoard.get().getContent()).isEqualTo(dto.content());
5050
}
51-
52-
@DisplayName("커뮤니티 게시글을 이미지 링크 없이 등록할 시 빈 문자열을 저장한다.")
53-
@Test
54-
void createCommunityWithoutImgUrl() {
55-
//given
56-
CommunityBoardCreateRequestDto dto = CommunityBoardCreateRequestDto.builder()
57-
.title("커뮤니티 테스트 제목")
58-
.content("커뮤니티 테스트 내용")
59-
.build();
60-
61-
UUID writerId = UUID.randomUUID();
62-
63-
//when
64-
Long communityId = createCommunityBoardService.createCommunityBoard(dto, writerId);
65-
66-
//then
67-
Optional<CommunityBoard> communityBoard = communityBoardRepository.findById(communityId);
68-
69-
assertThat(communityBoard).isPresent();
70-
assertThat(communityBoard.get().getId()).isEqualTo(communityId);
71-
assertThat(communityBoard.get().getWriterId()).isEqualTo(writerId);
72-
assertThat(communityBoard.get().getTitle()).isEqualTo(dto.title());
73-
assertThat(communityBoard.get().getContent()).isEqualTo(dto.content());
74-
}
7551
}

src/test/java/com/somemore/domains/community/service/board/UpdateCommunityBoardServiceTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ void updateCommunityBoard() {
6060
.content("수정된 커뮤니티 테스트 내용")
6161
.build();
6262

63-
String newImgUrl = "https://image.test.url/567";
64-
6563
//when
6664
updateCommunityBoardService.updateCommunityBoard(dto, communityId, writerId);
6765

0 commit comments

Comments
 (0)