Ael.test.Listenerクラス
説明
実行途中の各イベント通知の受けるリスナーの抽象クラスです。
prototypeプロパティ
onRunStarted
prototype onRunStarted(Ael.test.Runner runner) : void
- @param {Ael.test.Runner} runner ランナー
ランナーの実行開始時に呼ばれるメソッド。
onRunFinished
prototype onRunFinished(Ael.test.Runner runner) : void
- @param {Ael.test.Runner} runner ランナー
ランナーの実行終了時に呼ばれるメソッド。
onStarted
prototype onStarted(Ael.test.TestCase testcase) : void
- @param {Ael.test.TestCase} testcase テストケース
テストケースの実行開始時に呼ばれるメソッド。
onFinished
prototype onFinished(Ael.test.TestCase testcase) : void
- @param {Ael.test.TestCase} testcase テストケース
テストケースの実行終了時に呼ばれるメソッド。
onSuccessful
prototype onSuccessful(Ael.test.TestCase testcase) : void
- @param {Ael.test.TestCase} testcase テストケース
テストケースが正常に終了した場合に呼ばれるメソッド。
onFailure
prototype onFailure(Ael.test.TestCase testcase) : void
- @param {Ael.test.TestCase} testcase テストケース
テストケースが失敗した場合に呼ばれるメソッド。
onError
prototype onError(Ael.test.TestCase testcase, Ael.lang.Error error) : void
- @param {Ael.test.TestCase} testcase テストケース
- @param {Ael.lang.Error} error エラー情報
テストケースがエラーによって終了した場合に呼ばれるメソッド。
onAssertSuccessful
prototype onAssertSuccessful(Ael.test.Testcase testcase, string message, object expected, object actual) : void
- @param {Ael.test.TestCase} testcase テストケース
- @param {string} message アサーションメッセージ
- @param {object} expected 期待値
- @param {object} actual 結果値
テストケース内で一つのアサートが妥当な結果となった場合に呼ばれるメソッド。
onAssertFailure
prototype onAssertFailure(Ael.test.Testcase testcase, string message, object expected, object actual, string failureMessage) : void
- @param {Ael.test.TestCase} testcase テストケース
- @param {string} message アサーションメッセージ
- @param {object} expected 期待値
- @param {object} actual 結果値
- @param {string} failureMessage アサーションエラーメッセージ
テストケース内で一つのアサートが失敗した場合に呼ばれるメソッド。