카테고리 없음

Gradle Junit5 으로 기본설정 되어있는것 -> Junit4 도 사용할 수 있도록

개발자자자 2021. 1. 6. 09:41

build.gradle 에서 

test {
  useJUnitPlatform{
  	includeEngines 'junit-vintage'
  }
}

 

 

꿀팁 :

You're mixing JUnit 4 and JUnit 5.

The expected element exists in the JUnit4 @Test

JUnit 5 offers more powerful assertThrows instead