basic/Java
@RunWith, @Before import안될 때 // assertThat
ekgoddldi
2021. 6. 10. 12:22
junit4가 아닌 버전을 사용해서 그런다.
testImplementation("org.junit.vintage:junit-vintage-engine") {
exclude group: "org.hamcrest", module: "hamcrest-core"
}
Junit4 > vintage-engine
Junit5 > jupiter-engine
junit4 -> junit5
@BeforeClass -> @BeforeAll
@Before -> @BeforeEach
로 변경되었다.
import static org.assertj.core.api.Assertions.assertThat;