JUnit : test 환경 지원 도구(프레임워크)

cutting-edge techniques : test case 자동생성 방법

JUnit이 테스트하는것

  1. object 전체
  2. object의 특정 메소드, interacting 메소드
  3. object 간 interaction

시스템 테스트와는 별로 상관없음 (requirement-based test에 더 연관있음)

execution, evaluation 둘 다 해줌

@Before, @After 같은걸로 초기화, 할당해제 및 리셋 가능하다

Untitled

왼쪽에는 스펙(주석), 오른쪽은 제네릭

왼쪽에는 스펙(주석), 오른쪽은 제네릭

Untitled

리스트가 Null이거나 Null인 원소가 있을 때 nullpointerexception 발생

리스트가 Null이거나 Null인 원소가 있을 때 nullpointerexception 발생

Untitled

Untitled