로딩
요청 처리 중입니다...

[JUnit5] 스프링부트 단위 테스트 작성 예시(Controller & Service)

 [JUnit5] 스프링부트 단위 테스트 작성 예시(Controller & Service)

[JUnit5] 스프링부트 단위 테스트를 작성 예시 (Controller & Service) https://github.com/sosow0212/mentoring GitHub - sosow0212/mentoring: 22MJU 스프링 멘토 활동을 위해 제작한 프로젝트입니다. 22MJU 스프링 멘토 활동을 위해 제작한 프로젝트입니다. Contribute to sosow0212/mentoring development by creating an account on GitHub. github.com 위 깃허브 프로젝트를 기반으로 테스트코드 작성을 진행합니다.

테스트코드 작성에 앞서 먼저 사용된 Controller 와 Service 코드는 다음과 같습니다. BoardController package com.example.mentoring.controller; import com.example.mentoring.dto.BoardEditRequestDto; import com.example.me...