org.seasar.framework.unit
クラス S2FrameworkTestCase

java.lang.Object
  拡張junit.framework.Assert
      拡張junit.framework.TestCase
          拡張org.seasar.framework.unit.S2FrameworkTestCase
すべての実装インタフェース:
Test

public abstract class S2FrameworkTestCase
extends TestCase

作成者:
higa

フィールドの概要
protected static String ENV_PATH
           
protected static String ENV_VALUE
           
 
コンストラクタの概要
S2FrameworkTestCase()
           
S2FrameworkTestCase(String name)
           
 
メソッドの概要
protected  void bindField(Field field)
           
protected  void bindFields()
           
protected  String convertPath(String path)
           
protected  void doRunTest()
           
 Object getComponent(Class componentClass)
           
 Object getComponent(String componentName)
           
 ComponentDef getComponentDef(Class componentClass)
           
 ComponentDef getComponentDef(String componentName)
           
 S2Container getContainer()
           
protected  NamingConvention getNamingConvention()
           
protected  ClassLoader getOriginalClassLoader()
           
protected  MockHttpServletRequest getRequest()
           
protected  MockHttpServletResponse getResponse()
           
protected  String getRootDicon()
           
protected  Servlet getServlet()
           
protected  MockServletConfig getServletConfig()
           
protected  MockServletContext getServletContext()
           
protected  Method getTargetMethod()
           
protected  String getTargetName()
           
 void include(String path)
           
protected  Object invoke(String methodName)
           
protected  boolean isAutoBindable(Field field)
           
 boolean isWarmDeploy()
           
protected  String normalizeName(String name)
           
 void register(Class componentClass)
           
 void register(Class componentClass, String componentName)
           
 void register(ComponentDef componentDef)
           
 void register(Object component)
           
 void register(Object component, String componentName)
           
protected  String resolveRootDicon()
           
 void runBare()
           
protected  void setRequest(MockHttpServletRequest request)
           
protected  void setResponse(MockHttpServletResponse response)
           
protected  void setServlet(Servlet servlet)
           
protected  void setServletConfig(MockServletConfig servletConfig)
           
protected  void setServletContext(MockServletContext servletContext)
           
protected  void setUpAfterBindFields()
           
protected  void setUpAfterContainerInit()
           
protected  void setUpContainer()
           
protected  void setUpForEachTestMethod()
           
 void setWarmDeploy(boolean warmDeploy)
           
protected  void tearDownBeforeContainerDestroy()
           
protected  void tearDownBeforeUnbindFields()
           
protected  void tearDownContainer()
           
protected  void tearDownForEachTestMethod()
           
protected  void unbindFields()
           
 
クラス junit.framework.TestCase から継承したメソッド
countTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, toString
 
クラス junit.framework.Assert から継承したメソッド
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

ENV_PATH

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

ENV_VALUE

protected static final String ENV_VALUE
関連項目:
定数フィールド値
コンストラクタの詳細

S2FrameworkTestCase

public S2FrameworkTestCase()

S2FrameworkTestCase

public S2FrameworkTestCase(String name)
メソッドの詳細

isWarmDeploy

public boolean isWarmDeploy()

setWarmDeploy

public void setWarmDeploy(boolean warmDeploy)

getContainer

public S2Container getContainer()

getComponent

public Object getComponent(String componentName)

getComponent

public Object getComponent(Class componentClass)

getComponentDef

public ComponentDef getComponentDef(String componentName)

getComponentDef

public ComponentDef getComponentDef(Class componentClass)

register

public void register(Class componentClass)

register

public void register(Class componentClass,
                     String componentName)

register

public void register(Object component)

register

public void register(Object component,
                     String componentName)

register

public void register(ComponentDef componentDef)

include

public void include(String path)

convertPath

protected String convertPath(String path)

runBare

public void runBare()
             throws Throwable
例外:
Throwable
関連項目:
TestCase.runBare()

getRootDicon

protected String getRootDicon()
                       throws Throwable
例外:
Throwable

setUpContainer

protected void setUpContainer()
                       throws Throwable
例外:
Throwable

getOriginalClassLoader

protected ClassLoader getOriginalClassLoader()

resolveRootDicon

protected String resolveRootDicon()
                           throws Throwable
例外:
Throwable

tearDownContainer

protected void tearDownContainer()
                          throws Throwable
例外:
Throwable

setUpAfterContainerInit

protected void setUpAfterContainerInit()
                                throws Throwable
例外:
Throwable

setUpAfterBindFields

protected void setUpAfterBindFields()
                             throws Throwable
例外:
Throwable

tearDownBeforeUnbindFields

protected void tearDownBeforeUnbindFields()
                                   throws Throwable
例外:
Throwable

setUpForEachTestMethod

protected void setUpForEachTestMethod()
                               throws Throwable
例外:
Throwable

tearDownBeforeContainerDestroy

protected void tearDownBeforeContainerDestroy()
                                       throws Throwable
例外:
Throwable

tearDownForEachTestMethod

protected void tearDownForEachTestMethod()
                                  throws Throwable
例外:
Throwable

doRunTest

protected void doRunTest()
                  throws Throwable
例外:
Throwable

getServlet

protected Servlet getServlet()

setServlet

protected void setServlet(Servlet servlet)

getServletConfig

protected MockServletConfig getServletConfig()

setServletConfig

protected void setServletConfig(MockServletConfig servletConfig)

getServletContext

protected MockServletContext getServletContext()

setServletContext

protected void setServletContext(MockServletContext servletContext)

getRequest

protected MockHttpServletRequest getRequest()

setRequest

protected void setRequest(MockHttpServletRequest request)

getResponse

protected MockHttpServletResponse getResponse()

setResponse

protected void setResponse(MockHttpServletResponse response)

getNamingConvention

protected NamingConvention getNamingConvention()

getTargetName

protected String getTargetName()

getTargetMethod

protected Method getTargetMethod()

invoke

protected Object invoke(String methodName)
                 throws Throwable
例外:
Throwable

bindFields

protected void bindFields()
                   throws Throwable
例外:
Throwable

bindField

protected void bindField(Field field)

normalizeName

protected String normalizeName(String name)

isAutoBindable

protected boolean isAutoBindable(Field field)

unbindFields

protected void unbindFields()


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