JMockit An automated testing toolkit for Java

The JMockit Testing Toolkit Tutorial

  1. Introduction
    導入
    1. Automated developer testing and test isolation
      開発者のテストの自動化とテストの分離
    2. Testing with mock objects
      モックオブジェクトを使ったテスト
    3. An example

    4. Running tests with JMockit
      JMockit でテストを実行する
  2. Testing enterprise applications
    エンタープライズアプリケーションのテスト
    1. An example

    2. Interface resolution
      インターフェース解像度
    3. Trade-offs of the approach
      アプローチのトレードオフ
  3. Mocking
    1. Mocked types and instances
      モック型とインスタンス
    2. Expectations
      期待
    3. The record-replay-verify model
      記録・再生・検証モデル
    4. Instantiation and injection of tested classes
      テスト対象のクラスのインスタンス化と注入
    5. Recording results for an expectation
      期待の結果を記録する
    6. Flexible matching of argument values
      引数値の柔軟なマッチング
    7. Specifying invocation count constraints
      呼び出し回数の制約を指定する
    8. Explicit verification
      明示的な検証
    9. Delegates: specifying custom results
      デリゲート: カスタム結果の指定
    10. Capturing invocation arguments for verification
      検証のための呼び出し引数のキャプチャ
    11. Cascading mocks
      カスケードモック
    12. Matching invocations to specific instances
      特定のインスタンスへの呼び出しのマッチング
    13. Partial mocking
      部分的な嘲笑
    14. Mocking unspecified implementation classes
      未指定の実装クラスのモック
  4. Faking
    1. Fake methods and fake classes
      偽のメソッドと偽のクラス
    2. Applying fake classes
      偽のクラスを適用する
    3. Faking unspecified implementation classes
      未指定の実装クラスを偽装する
    4. Faking class initializers
      クラス初期化子の偽装
    5. Accessing the invocation context
      呼び出しコンテキストへのアクセス
    6. Proceeding into the real implementation
      実際の実装に進む
    7. Reusing fakes between tests
      テスト間で偽物を再利用する
    8. Global fakes
      世界的な偽物
    9. Applying AOP-style advice
      AOPスタイルのアドバイスを適用する
  5. Measuring code coverage
    1. The coverage metric
      カバレッジメトリック
    2. Types of coverage output
      カバレッジ出力の種類
    3. Configuring the coverage tool
      カバレッジツールの設定
    4. Aggregated reports for multiple test runs
      複数のテスト実行の集計レポート
    5. Checking minimum coverage
      最低限の補償範囲の確認
    6. Activating coverage in a Maven project
      Maven プロジェクトでカバレッジを有効にする
    7. Turning coverage off
      カバレッジをオフにする