Skip to content

Commit

Permalink
[TDC-100] 테스트코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yerimkoko committed Jun 20, 2024
1 parent 6a900ba commit fcb7e87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class PostFacadeService {

public void addPost(PostAddRequest request,
@NotBlank String workspaceId,
String accountId) {
@NotBlank String accountId) {
postService.addPost(request, workspaceId, accountId);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.threedollar.domain.post.repository.PostRepository;
import com.threedollar.service.post.request.PostAddRequest;
import com.threedollar.service.post.request.PostSectionRequest;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
Expand All @@ -25,6 +26,11 @@ public class PostServiceTest extends IntegrationTest {
@Autowired
private PostRepository postRepository;

@AfterEach
void clean_up() {
postRepository.deleteAll();
}

@Test
void 사장님이_소식을_작성한다() {

Expand Down

0 comments on commit fcb7e87

Please sign in to comment.