Search in sources :

Example 11 with DefaultFileManagerFactory

use of com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory in project struts by apache.

the class DummyFileManager method testCreateDummyFileManager.

public void testCreateDummyFileManager() throws Exception {
    // given
    fileManager = new DummyFileManager();
    DefaultFileManagerFactory factory = new DefaultFileManagerFactory();
    factory.setFileManager(new DefaultFileManager());
    factory.setContainer(new DummyContainer());
    // when
    FileManager fm = factory.getFileManager();
    // then
    assertTrue(fm instanceof DummyFileManager);
}
Also used : FileManager(com.opensymphony.xwork2.FileManager)

Aggregations

DefaultFileManagerFactory (com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory)8 DefaultFileManager (com.opensymphony.xwork2.util.fs.DefaultFileManager)5 FileManager (com.opensymphony.xwork2.FileManager)4 DefaultConfiguration (com.opensymphony.xwork2.config.impl.DefaultConfiguration)4 ArrayList (java.util.ArrayList)3 Configuration (com.opensymphony.xwork2.config.Configuration)2 ContainerProvider (com.opensymphony.xwork2.config.ContainerProvider)2 RuntimeConfiguration (com.opensymphony.xwork2.config.RuntimeConfiguration)2 ActionConfig (com.opensymphony.xwork2.config.entities.ActionConfig)2 InterceptorMapping (com.opensymphony.xwork2.config.entities.InterceptorMapping)2 File (java.io.File)2 StrutsXmlConfigurationProvider (org.apache.struts2.config.StrutsXmlConfigurationProvider)2 StrutsMockServletContext (org.apache.struts2.views.jsp.StrutsMockServletContext)2 Mock (com.mockobjects.dynamic.Mock)1 FileManagerFactory (com.opensymphony.xwork2.FileManagerFactory)1 StubValueStack (com.opensymphony.xwork2.StubValueStack)1 PackageConfig (com.opensymphony.xwork2.config.entities.PackageConfig)1 Container (com.opensymphony.xwork2.inject.Container)1 MockActionInvocation (com.opensymphony.xwork2.mock.MockActionInvocation)1 MockActionProxy (com.opensymphony.xwork2.mock.MockActionProxy)1