|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.seasar.junitcdi.core.runner.CDI
public class CDI
JUnit4のテストクラスでJSR-299 CDI(Contexts and Dependency Injection)を利用するための
Runnerです.
テストクラスのRunWithアノテーションでこのクラスを指定することで, CDIがブートストラップされます.
@RunWith(CDI.class)
public class XxxTest {
...
}
| フィールドの概要 | |
|---|---|
protected BeanManager |
beanManager
CDIコンテナ |
protected CreationalContext<?> |
creationalContext
テストクラスのインスタンスを作成したコンテキスト |
protected Bean<?> |
testBean
テストクラスのbean定義 |
protected TestEventNotifier |
testEventNotifier
テストイベントを通知するbean |
| コンストラクタの概要 | |
|---|---|
CDI(Class<?> clazz)
|
|
| クラス org.junit.runners.ParentRunner から継承されたメソッド |
|---|
childrenInvoker, filter, getDescription, getName, getTestClass, run, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses |
| クラス org.junit.runner.Runner から継承されたメソッド |
|---|
testCount |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース org.junit.runner.manipulation.Filterable から継承されたメソッド |
|---|
filter |
| インタフェース org.junit.runner.manipulation.Sortable から継承されたメソッド |
|---|
sort |
| フィールドの詳細 |
|---|
protected BeanManager beanManager
protected TestEventNotifier testEventNotifier
protected Bean<?> testBean
protected CreationalContext<?> creationalContext
| コンストラクタの詳細 |
|---|
public CDI(Class<?> clazz)
throws Exception
clazz -
Exception| メソッドの詳細 |
|---|
protected org.junit.runners.model.Statement classBlock(RunNotifier notifier)
ParentRunner<org.junit.runners.model.FrameworkMethod> 内の classBlock
protected void runChild(org.junit.runners.model.FrameworkMethod method,
RunNotifier runNotifier)
BlockJUnit4ClassRunner 内の runChildprotected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
BlockJUnit4ClassRunner 内の methodBlock
protected Object createTest()
throws Exception
BlockJUnit4ClassRunner 内の createTestException
protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method,
Object test)
BlockJUnit4ClassRunner 内の methodInvoker
protected org.junit.runners.model.Statement withBefores(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement statement)
BlockJUnit4ClassRunner 内の withBefores
protected org.junit.runners.model.Statement withAfters(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement statement)
BlockJUnit4ClassRunner 内の withAfters
protected List<org.junit.runners.model.FrameworkMethod> getCallbackMethods(String testMethod,
org.seasar.junitcdi.core.runner.CDI.CallbackMethodType type)
testMethod - テストメソッドtype - BeforeまたはAfter
protected static boolean isCallbackMethod(org.junit.runners.model.FrameworkMethod method,
String testMethod,
org.seasar.junitcdi.core.runner.CDI.CallbackMethodType type)
method - メソッドtestMethod - テストメソッドtype - BeforeまたはAfter
protected static boolean isCallbackMethod(String method,
String testMethod,
String prefix)
method - メソッドtestMethod - テストメソッドprefix - 接頭辞
protected static boolean isCallbackMethod(String[] targetMethods,
String testMethod)
targetMethods - メソッドが対称とするテストメソッドtestMethod - テストメソッド
protected static String capitalize(String s)
s - 文字列
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||