org.seasar.framework.unit
クラス S2TestMethodRunner

java.lang.Object
  上位を拡張 org.seasar.framework.unit.S2TestMethodRunner

public class S2TestMethodRunner
extends Object

作成者:
taedium

フィールドの概要
protected  org.junit.runner.Description description
           
protected  EasyMockSupport easyMockSupport
           
protected static String ENV_PATH
           
protected static String ENV_VALUE
           
protected  S2TestIntrospector introspector
           
protected  Method method
           
protected  org.junit.runner.notification.RunNotifier notifier
           
protected  ClassLoader originalClassLoader
           
protected static String S2JUNIT4_PATH
           
protected  Object test
           
protected  Class<?> testClass
           
protected  InternalTestContext testContext
           
protected  org.seasar.framework.unit.UnitClassLoader unitClassLoader
           
 
コンストラクタの概要
S2TestMethodRunner(Object test, Method method, org.junit.runner.notification.RunNotifier notifier, org.junit.runner.Description description, S2TestIntrospector introspector)
           
 
メソッドの概要
protected  void addFailure(Throwable e)
           
protected  void bindField(Field field)
           
protected  void bindField(Field field, Object object)
           
protected  void bindFields()
           
protected  void executeMethod()
           
protected  void executeMethodBody()
           
protected  Class<? extends Throwable> expectedException()
           
protected  boolean expectsException()
           
protected  ClassLoader getOriginalClassLoader()
           
protected  void initContainer()
           
protected  void invokeMethod(Method method)
           
protected  boolean isAutoBindable(Field field)
           
protected  boolean isFulfilled()
           
protected  boolean isIgnored()
           
protected  boolean isUnexpected(Throwable exception)
           
protected  boolean needsWarmDeploy()
           
protected  String normalizeName(String name)
           
protected  String resolveComponentName(Field filed)
           
 void run()
           
protected  void runAfters()
           
protected  void runBefores()
           
protected  void runEachAfter()
           
protected  void runEachBefore()
           
protected  boolean runEachRecord()
           
protected  void runMethod()
           
protected  void runTest()
           
protected  void runTestMethod()
           
protected  void runWithTimeout(long timeout)
           
protected  void setUpTestContext()
           
protected  void tearDownTestContext()
           
protected  void unbindFields()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

S2JUNIT4_PATH

protected static final String S2JUNIT4_PATH
関連項目:
定数フィールド値

ENV_PATH

protected static final String ENV_PATH
関連項目:
定数フィールド値

ENV_VALUE

protected static final String ENV_VALUE
関連項目:
定数フィールド値

test

protected final Object test

testClass

protected final Class<?> testClass

method

protected final Method method

notifier

protected final org.junit.runner.notification.RunNotifier notifier

description

protected final org.junit.runner.Description description

introspector

protected final S2TestIntrospector introspector

originalClassLoader

protected ClassLoader originalClassLoader

unitClassLoader

protected org.seasar.framework.unit.UnitClassLoader unitClassLoader

testContext

protected InternalTestContext testContext

easyMockSupport

protected EasyMockSupport easyMockSupport
コンストラクタの詳細

S2TestMethodRunner

public S2TestMethodRunner(Object test,
                          Method method,
                          org.junit.runner.notification.RunNotifier notifier,
                          org.junit.runner.Description description,
                          S2TestIntrospector introspector)
メソッドの詳細

addFailure

protected void addFailure(Throwable e)

run

public void run()

isIgnored

protected boolean isIgnored()

isFulfilled

protected boolean isFulfilled()

runWithTimeout

protected void runWithTimeout(long timeout)

runMethod

protected void runMethod()

setUpTestContext

protected void setUpTestContext()
                         throws Throwable
例外:
Throwable

getOriginalClassLoader

protected ClassLoader getOriginalClassLoader()

tearDownTestContext

protected void tearDownTestContext()
                            throws Throwable
例外:
Throwable

runBefores

protected void runBefores()
                   throws org.seasar.framework.unit.S2TestMethodRunner.FailedBefore
例外:
org.seasar.framework.unit.S2TestMethodRunner.FailedBefore

runAfters

protected void runAfters()

runEachBefore

protected void runEachBefore()
                      throws org.seasar.framework.unit.S2TestMethodRunner.FailedBefore
例外:
org.seasar.framework.unit.S2TestMethodRunner.FailedBefore

runEachAfter

protected void runEachAfter()

initContainer

protected void initContainer()

bindFields

protected void bindFields()
                   throws Throwable
例外:
Throwable

bindField

protected void bindField(Field field)

bindField

protected void bindField(Field field,
                         Object object)

isAutoBindable

protected boolean isAutoBindable(Field field)

resolveComponentName

protected String resolveComponentName(Field filed)

normalizeName

protected String normalizeName(String name)

runTestMethod

protected void runTestMethod()
                      throws Throwable
例外:
Throwable

runEachRecord

protected boolean runEachRecord()
                         throws Throwable
例外:
Throwable

runTest

protected void runTest()
                throws Throwable
例外:
Throwable

executeMethod

protected void executeMethod()
                      throws Throwable
例外:
Throwable

executeMethodBody

protected void executeMethodBody()
                          throws Throwable
例外:
Throwable

expectsException

protected boolean expectsException()

isUnexpected

protected boolean isUnexpected(Throwable exception)

expectedException

protected Class<? extends Throwable> expectedException()

invokeMethod

protected void invokeMethod(Method method)
                     throws Throwable
例外:
Throwable

unbindFields

protected void unbindFields()

needsWarmDeploy

protected boolean needsWarmDeploy()


Copyright © 2005-2007 The Seasar Foundation. All Rights Reserved.