org.apache.struts2

## Class StrutsSpringJUnit4TestCase<T>

- java.lang.Object
- - com.opensymphony.xwork2.XWorkJUnit4TestCase
  - - org.apache.struts2.StrutsJUnit4TestCase<T>
    - - org.apache.struts2.StrutsSpringJUnit4TestCase<T>

- All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

      public abstract class StrutsSpringJUnit4TestCase<T>
      extends StrutsJUnit4TestCase<T>
      implements org.springframework.context.ApplicationContextAware

  User: mcucchiara Date: 04/08/11 Time: 16.50

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected org.springframework.context.ApplicationContext` | `applicationContext`

    - ### Fields inherited from class org.apache.struts2.StrutsJUnit4TestCase

      `dispatcher, dispatcherInitParams, pageContext, request, resourceLoader, response, servletContext`

    - ### Fields inherited from class com.opensymphony.xwork2.XWorkJUnit4TestCase

      `actionProxyFactory, configuration, configurationManager, container`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `StrutsSpringJUnit4TestCase()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `setApplicationContext(org.springframework.context.ApplicationContext applicationContext)`
    `protected void` | `setupBeforeInitDispatcher()`

    - ### Methods inherited from class org.apache.struts2.StrutsJUnit4TestCase

      `containsErrors, executeAction, findValueAfterExecute, finishExecution, getAction, getActionMapping, getActionMapping, getActionProxy, getConfigPath, initActionContext, initDispatcher, initDispatcherParams, initServletMockObjects, initSession, injectStrutsDependencies, setUp, tearDown`

    - ### Methods inherited from class com.opensymphony.xwork2.XWorkJUnit4TestCase

      `loadButAdd, loadButAdd, loadConfigurationProviders`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### applicationContext

          protected org.springframework.context.ApplicationContext applicationContext

  - ### Constructor Detail

    - #### StrutsSpringJUnit4TestCase

          public StrutsSpringJUnit4TestCase()

  - ### Method Detail

    - #### setupBeforeInitDispatcher

          protected void setupBeforeInitDispatcher()
                                            throws Exception

      Overrides:
        `setupBeforeInitDispatcher` in class `StrutsJUnit4TestCase<T>`
      Throws:
        `Exception`

    - #### setApplicationContext

          public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                                     throws org.springframework.beans.BeansException

      Specified by:
        `setApplicationContext` in interface `org.springframework.context.ApplicationContextAware`
      Throws:
        `org.springframework.beans.BeansException`

Copyright © 2000–2022 Apache Software Foundation. All rights reserved.