18日(米国時間)、JUnitの最新版となるJUnit 4.4が公開された。JUnitはJavaで開発されたユニットテストフレームワーク。Common Public License Version 1.0のもとに公開されているテストフレームワークで、ユニットテスト用のフレームワークとしては事実上の標準。
テストのやり方、一回確認したのに綺麗さっぱり忘れていたので覚え書きです。 ・メソッド名はちょっと増長でも「何をしたら、どうなる(はず)」という名前を付ける 「残高以上を引き出そうとしたら例外が発生する」「二回残高を追加したら合計金額 ...
People often write tests like assertTrue(rs.next()) or assertEquals(user.getName(), "Tim"). Unfortunately, it produces low-quality failure message like expected: <true> got: <false>, or expected: ...
Assume.assumeThatで実行環境の「前提条件」を表現 テストコードを作成してユニットテストをクリアしたのにもかかわらず、アプリケーションを他の環境に移した途端に問題が現れるというのは実によくある話だ。これはユニットテストコードを作成したデ ...
A mechanism for automatically creating test suites from classfiles in part of a filesystem A new TestCase that better supports tests in multiple threads When faced with unit testing, many teams end up ...
The NetBeans IDE provides JUnit integration that can be very handy when writing and running JUnit-based unit tests. However, I like to be able to do anything I might do often outside of the IDE as ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する