> For the complete documentation index, see [llms.txt](https://organization-bht.gitbook.io/it/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://organization-bht.gitbook.io/it/undefined-5.md). Agents can also search and read this documentation through its [MCP server](https://organization-bht.gitbook.io/it/~gitbook/mcp).

# 애플리케이션 테스트 수행 참고 자료

## 1. MockMvc

* 웹서버를 구동하지 않고도 Http요청을 모의로 생성하여 컨트롤러를 테스트 할 수 있께 해주는 테스트 클래스.&#x20;
* login.jsp의 form를 통한 요청을 backend에서 직접 작성하고 테스트 할 수 있음.

## 2. 핵심 코드설명

* `mockMvc.perform(get("/login.do").param("userId", "je_lee").param("userPw", "1234"))`
  * login.do로 get방식 요청을 보내며 파라미터로는 userId와 , userPw를 보내어 테스트를 진행하는 코드
