|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.junit.runner.notification.RunListener
org.seasar.junitcdi.core.internal.TestEventNotifier
public class TestEventNotifier
JUnitのテストイベントを通知するbeanです.
| フィールドの概要 | |
|---|---|
protected BeanManager |
beanManager
BeanManager |
| コンストラクタの概要 | |
|---|---|
TestEventNotifier()
|
|
| メソッドの概要 | |
|---|---|
protected Annotation[] |
getQualifiers(Description description,
Annotation eventAnnotation)
テストクラスおよびテストメソッドに注釈された Qualifierの配列を返します. |
protected void |
rethrow(ObserverException e)
オブザーバーがスローした例外をスローします. |
void |
testAssumptionFailure(Failure failure)
テストの前提が満たされていなかったことを通知します. |
void |
testFailure(Failure failure)
テストが失敗したことを通知します. |
void |
testFinished(Description description)
テストが終了したことを通知します. |
void |
testIgnored(Description description)
テストが無視したことを通知します. |
void |
testMethodFinished(TestInfo testInfo)
テストメソッドの実行が終了したことを通知します. |
void |
testMethodStarted(TestInfo testInfo)
テストメソッドの実行が開始されることを通知します. |
void |
testStarted(Description description)
テストが開始したことを通知します. |
| クラス org.junit.runner.notification.RunListener から継承されたメソッド |
|---|
testRunFinished, testRunStarted |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
@Inject protected BeanManager beanManager
BeanManager
| コンストラクタの詳細 |
|---|
public TestEventNotifier()
| メソッドの詳細 |
|---|
public void testStarted(Description description)
throws Exception
RunListener 内の testStarteddescription - テストの記述
Exception - オブザーバーが例外をスローした場合
public void testFinished(Description description)
throws Exception
RunListener 内の testFinisheddescription - テストの記述
Exception - オブザーバーが例外をスローした場合
public void testFailure(Failure failure)
throws Exception
RunListener 内の testFailurefailure - 失敗の記述
Exception - オブザーバーが例外をスローした場合public void testAssumptionFailure(Failure failure)
RunListener 内の testAssumptionFailurefailure - 失敗の記述
public void testIgnored(Description description)
throws Exception
RunListener 内の testIgnoreddescription - テストの記述
Exception - オブザーバーが例外をスローした場合
public void testMethodStarted(TestInfo testInfo)
throws Exception
testInfo - テストの情報
Exception - オブザーバーが例外をスローした場合
public void testMethodFinished(TestInfo testInfo)
throws Exception
testInfo - テストの情報
Exception - オブザーバーが例外をスローした場合
protected Annotation[] getQualifiers(Description description,
Annotation eventAnnotation)
Qualifierの配列を返します.
配列の先頭要素はeventAnnotationです.
description - DescriptioneventAnnotation - イベントのアノテーション
Qualifierの配列
protected void rethrow(ObserverException e)
throws Exception
e - オブザーバーがスローした例外をラップした例外
Exception - オブザーバーがスローした例外
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||