|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface S2TestIntrospector
テストクラスを分析するイントロスペクターです。
| メソッドの概要 | |
|---|---|
void |
createMock(Method method,
Object test,
InternalTestContext context)
MockInterceptorを利用したモックを作成します。 |
Class<? extends Throwable> |
expectedException(Method method)
メソッドがスローすると期待される例外もしくはエラーのクラスを返します。 |
List<Method> |
getAfterClassMethods(Class<?> clazz)
テストクラスの解放メソッドのリストを返します。 |
List<Method> |
getAfterMethods(Class<?> clazz)
すべてのテストケース共通の解放メソッドのリストを返します。 |
List<Method> |
getBeforeClassMethods(Class<?> clazz)
テストクラスの初期化メソッドのリストを返します。 |
List<Method> |
getBeforeMethods(Class<?> clazz)
すべてのテストケース共通の初期化メソッドのリストを返します。 |
Method |
getEachAfterMethod(Class<?> clazz,
Method method)
テストケース個別の解放メソッドを返します。 |
Method |
getEachBeforeMethod(Class<?> clazz,
Method method)
テストケース個別の初期化メソッドを返します。 |
Method |
getEachRecordMethod(Class<?> clazz,
Method method)
テストケース個別の記録メソッドを返します。 |
String |
getRootDicon(Class<?> clazz,
Method method)
ルートコンテナを表すdiconファイルのパスを返します。 |
List<Method> |
getTestMethods(Class<?> clazz)
指定されたテストクラス内のすべてのテストメソッドを返します。 |
long |
getTimeout(Method method)
メソッドの実行のタイムアウトを表すミリ秒を返します。 |
boolean |
isFulfilled(Class<?> clazz,
Method method,
Object test)
テストケース実行の事前条件が満たされている場合 trueを返します。 |
boolean |
isIgnored(Method method)
メソッドが無視の対象の場合 trueを返します。 |
boolean |
needsTransaction(Class<?> clazz,
Method method)
トランザクションが必要とされる場合 trueを返します。 |
boolean |
needsWarmDeploy(Class<?> clazz,
Method method)
WARM deployが必要とされる場合 trueを返します。 |
boolean |
requiresTransactionCommitment(Class<?> clazz,
Method method)
トランザクションのコミットが必要とされる場合 trueを返します。 |
| メソッドの詳細 |
|---|
List<Method> getTestMethods(Class<?> clazz)
clazz - テストクラス
boolean isIgnored(Method method)
trueを返します。
method - テストメソッド
true、そうでない場合falseClass<? extends Throwable> expectedException(Method method)
method - テストメソッド
nulllong getTimeout(Method method)
method - テストメソッド
boolean isFulfilled(Class<?> clazz,
Method method,
Object test)
trueを返します。
clazz - テストクラスmethod - テストメソッドtest - テストオブジェクト
true、そうでない場合false
boolean needsTransaction(Class<?> clazz,
Method method)
trueを返します。
clazz - テストクラスmethod - テストメソッド
true、そうでない場合false
boolean requiresTransactionCommitment(Class<?> clazz,
Method method)
trueを返します。
clazz - テストクラスmethod - テストメソッド
true、そうでない場合false
boolean needsWarmDeploy(Class<?> clazz,
Method method)
trueを返します。
clazz - テストクラスmethod - テストメソッド
true、そうでない場合false
void createMock(Method method,
Object test,
InternalTestContext context)
MockInterceptorを利用したモックを作成します。
method - テストメソッドtest - テストクラスのインスタンスcontext - テストコンテキスト
String getRootDicon(Class<?> clazz,
Method method)
clazz - テストクラスmethod - テストメソッド
List<Method> getBeforeClassMethods(Class<?> clazz)
clazz - テストクラス
List<Method> getAfterClassMethods(Class<?> clazz)
clazz - テストクラス
List<Method> getBeforeMethods(Class<?> clazz)
clazz - テストクラス
List<Method> getAfterMethods(Class<?> clazz)
clazz - テストクラス
Method getEachBeforeMethod(Class<?> clazz,
Method method)
clazz - テストクラスmethod - テストメソッド
Method getEachAfterMethod(Class<?> clazz,
Method method)
clazz - テストクラスmethod - テストメソッド
Method getEachRecordMethod(Class<?> clazz,
Method method)
記録メソッドはEasyMockを利用して作成されたモックの振る舞いを記録するメソッドです。
clazz - テストクラスmethod - テストメソッド
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||