エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント2件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
JUnit・JMockitチートシート - Qiita
public class FourPhaseTest { @Test public void testCase() throws Exception{ // 1.初期化 Calc sut ... public class FourPhaseTest { @Test public void testCase() throws Exception{ // 1.初期化 Calc sut = new Calc(); int expected = 7; // 2.テスト実行 int actual = sut.add(3.4); //3.アサーション assertThat(actual, is(expected)); //4.終了処理(必要な場合) sut.shutdown(); } }
2015/01/14 リンク