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