본문 바로가기

Program/IDE

STS 나 Eclipse 에서 JUnit 설정하는 방법

- 이클립스 설정 : https://carrotweb.tistory.com/93

- JUnit5 : https://hirlawldo.tistory.com/39

 

 

- JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage

JUnit Platform : 인터페이스

JUnit Jupiter : 인터페이스 실제 구현

JUnit Vitage : JUnit4 와 JUnit3 수용

jdk 1.8 이상

 

- JUnit 4

"TestCase" 클래스 상속 안함

테스트 메서드에 @Test Annotation(어노테이션)

 

- JUnit 3

"TestCase" 클래스 상속 필수

테스트 메서드 명은 반드시 "test"으로 시작

"TestRunner.run()"를 통해서만 테스트