Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

요구사항 명세에 근거한 인수테스트 작성 #139

Merged
merged 13 commits into from
Oct 13, 2023
Merged

Conversation

xGreenNarae
Copy link
Contributor

작업 내용

  • 더미데이터 생성, MockMvc + SpringBootTest를 이용한 통합테스트를 각 API별로 추가하였습니다.
  • Pet - PetPolygonProfile Entity의 관계를 양방향에서 단방향으로 수정하였습니다. (Pet에서 필드 제거)

Close #131

@github-actions
Copy link

Overall Project 69.89% 🍏
File Coverage
ShelterAddressSignUpDto.java 87.34% 🍏
PetPolygonProfile.java 68.97% 🍏
Pet.java 67.87% 🍏

Copy link
Contributor

@jminkkk jminkkk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!!!

Comment on lines -13 to +19
.email("[email protected]")
.password("Test1234!")
.email(EMAIL)
.password(encodedPassword)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines +35 to 37
@Transactional
@AutoConfigureMockMvc
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.MOCK)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AutoConfigureMockMvc에 대해서 처음 알았네욥

MockMvc를 주입받아서 톰캣 서버를 띄우지 않은 상태로 API 요청 부분을 Mocking 해서 사용
하지만 스프링 컨텍스트의 빈을 모두 로드하는 것은 @SpringBootTest 와 동일

* 조회 기준은 둥록일 최신순 또는 보호만료일이 가까운 순으로 확인할 수 있다.
* 더보기 버튼을 통해 최신순 또는 안락사 기간 기준으로 각각 전체 리스트를 확인할 수 있다.
* 페이지 당 프로필을 각각 8개 단위로 확인할 수 있다.
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@xGreenNarae xGreenNarae merged commit d051a06 into develop Oct 13, 2023
2 checks passed
@xGreenNarae xGreenNarae deleted the test/#131 branch October 13, 2023 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BE] 요구사항 명세에 근거한 인수테스트 작성
2 participants