Slide 5
Slide 5 text
その前に:JUnit4,5の違い
パッケージ
JUnit4 : org.junit.*
JUnit5 : org.junit.jupiter.*
例 : org.junit.Test→org.junit.jupiter.api.Test
アノテーション
JUnit4 : @Test(expected = Exception.class)
JUnit5 : Assertions.assertThrows(Exception.class, () -> {//...});