|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.junit.runner.Runner
org.seasar.framework.unit.S2TestClassMethodsRunner
public class S2TestClassMethodsRunner
テストクラスに定義されたすべてのテストメソッドを扱うランナーです。
| 入れ子のクラスの概要 | |
|---|---|
static class |
S2TestClassMethodsRunner.DefaultProvider
S2TestClassMethodsRunnerの振る舞いを提供するデフォルトの実装クラスです。 |
static interface |
S2TestClassMethodsRunner.Provider
S2TestClassMethodsRunnerの振る舞いを提供します。 |
| フィールドの概要 | |
|---|---|
protected static S2TestClassMethodsRunner.Provider |
provider
S2TestClassMethodsRunnerの振る舞いを提供するプロバイダ |
protected Class<?> |
testClass
テストクラス |
protected List<Method> |
testMethods
テストメソッドのリスト |
| コンストラクタの概要 | |
|---|---|
S2TestClassMethodsRunner(Class<?> clazz)
インスタンスを構築します。 |
|
| メソッドの概要 | |
|---|---|
protected void |
addFailure(Throwable targetException,
RunNotifier notifier)
テストの失敗を登録します。 |
protected S2TestMethodRunner |
createMethodRunner(Object test,
Method method,
RunNotifier notifier)
テストメソッドランナーを作成します。 |
protected Object |
createTest()
テストクラスのインスタンスを作成します。 |
static void |
dispose()
このクラスを破棄します。 |
void |
filter(Filter filter)
|
protected List<Method> |
getAfterClassMethods()
テストクラスの解放メソッドのリストを返します。 |
protected List<Method> |
getBeforeClassMethods()
テストクラスの初期化メソッドのリストを返します。 |
Description |
getDescription()
|
protected String |
getName()
テストクラスの名前を返します。 |
protected static S2TestClassMethodsRunner.Provider |
getProvider()
S2TestClassMethodsRunnerの振る舞いを提供するプロバイダを返します。 |
protected Class<?> |
getTestClass()
テストクラスを返します。 |
protected List<Method> |
getTestMethods()
テストメソッドのリストを返します。 |
protected void |
invokeTestMethod(Method method,
RunNotifier notifier)
テストメソッドを実行します。 |
protected Description |
methodDescription(Method method)
テストのディスクリプションを返します。 |
void |
run(RunNotifier notifier)
|
protected void |
runAfters(RunNotifier notifier)
テストクラスの解放メソッドを実行します。 |
protected void |
runBefores(RunNotifier notifier)
テストクラスの初期化メソッドを実行します。 |
protected static void |
setProvider(S2TestClassMethodsRunner.Provider p)
S2TestClassMethodsRunnerの振る舞いを提供するプロバイダを設定します。 |
void |
sort(Sorter sorter)
|
protected String |
testName(Method method)
テストメソッドの名前を返します。 |
| クラス org.junit.runner.Runner から継承されたメソッド |
|---|
testCount |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected static S2TestClassMethodsRunner.Provider provider
S2TestClassMethodsRunnerの振る舞いを提供するプロバイダ
protected final List<Method> testMethods
protected final Class<?> testClass
| コンストラクタの詳細 |
|---|
public S2TestClassMethodsRunner(Class<?> clazz)
clazz - テストクラス| メソッドの詳細 |
|---|
public static void dispose()
public void run(RunNotifier notifier)
Runner 内の run
protected void runBefores(RunNotifier notifier)
throws org.seasar.framework.unit.S2TestClassMethodsRunner.FailedBefore
notifier - ノティファイアー
FailedBefore - 何らかの例外が発生した場合
org.seasar.framework.unit.S2TestClassMethodsRunner.FailedBeforeprotected void runAfters(RunNotifier notifier)
notifier - ノティフィアー
protected void addFailure(Throwable targetException,
RunNotifier notifier)
targetException - 例外notifier - ノティフィアーprotected List<Method> getTestMethods()
protected List<Method> getBeforeClassMethods()
protected List<Method> getAfterClassMethods()
public Description getDescription()
Runner 内の getDescriptionprotected String getName()
protected Object createTest()
throws Exception
Exception - 何らかの例外が発生した場合
protected void invokeTestMethod(Method method,
RunNotifier notifier)
method - テストメソッドnotifier - ノティファイアー
protected S2TestMethodRunner createMethodRunner(Object test,
Method method,
RunNotifier notifier)
test - テストmethod - テストメソッドnotifier - ノティファイアー
protected String testName(Method method)
method - テストメソッド
protected Description methodDescription(Method method)
method - テストメソッド
public void filter(Filter filter)
throws NoTestsRemainException
Filterable 内の filterNoTestsRemainExceptionpublic void sort(Sorter sorter)
Sortable 内の sortprotected Class<?> getTestClass()
protected static S2TestClassMethodsRunner.Provider getProvider()
S2TestClassMethodsRunnerの振る舞いを提供するプロバイダを返します。
protected static void setProvider(S2TestClassMethodsRunner.Provider p)
S2TestClassMethodsRunnerの振る舞いを提供するプロバイダを設定します。
p - 振る舞いを提供するプロバイダ
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||