Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JUnit 3 と 4 の主な違いを簡単に説明してもらえますか?
andの代わりに、セットアップとティアダウン ( @beforeand )の Java 5 アノテーション。@aftersetUp()tearDown()
@before
@after
setUp()
tearDown()
もう TestCase を拡張する必要はありません。
@Test注釈はtestSomeMethod()命名規則に取って代わります。
@Test
testSomeMethod()
static importsアサート用。
static imports
テスト自体からデータセットを分離できる Junit 理論。