Whiteship
  • Home
  • 인프런 강의
  • Java
  • Spring
  • JPA
  • SDE Tips
Subscribe
Tagged

Controller 테스팅

A collection of 1 post

Controller 테스팅

Testing Controller

매우 간단한 Controller를 테스트 하겠습니다.앞에서 만든 MultiActionController를 테스트 하는 코드를 작성하겠습니다. 앞에서 작서해준 컨트롤러는 다음과 같이 View이름만 넘겨 주도록 만든 Stub 형태 입니다.     public ModelAndView list(HttpServletRequest request, HttpServletResponse response){        return new ModelAndView(“issue/list”);    } 이 녀석을 EasyMock과 spring-mock.

  • 백기선
백기선 Jun 19, 2007 • 2 min read
Whiteship © 2022
Powered by Ghost