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

andThrow()

A collection of 1 post

andThrow()

EasyMock - Working with Exceptions

예외를 던지는 메소드가 있다면, andReturn()을 사용해서 정말 예외를 던지는 지 확인할 수 있습니다.         memberDao.remove(member);        expectLastCall().andThrow(new RuntimeException());                replay(memberDao);        memberServiceImpl.remove(member);       

  • 백기선
백기선 Mar 1, 2008 • 1 min read
Whiteship © 2022
Powered by Ghost