Search in sources :

Example 11 with DefaultFileManager

use of com.opensymphony.xwork2.util.fs.DefaultFileManager 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

DefaultFileManager (com.opensymphony.xwork2.util.fs.DefaultFileManager)8 FileManager (com.opensymphony.xwork2.FileManager)7 DefaultFileManagerFactory (com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory)5 FileManagerFactory (com.opensymphony.xwork2.FileManagerFactory)3 DefaultConfiguration (com.opensymphony.xwork2.config.impl.DefaultConfiguration)3 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 URL (java.net.URL)2 ArrayList (java.util.ArrayList)2 HashSet (java.util.HashSet)2 StrutsXmlConfigurationProvider (org.apache.struts2.config.StrutsXmlConfigurationProvider)2 Mock (com.mockobjects.dynamic.Mock)1 ActionContext (com.opensymphony.xwork2.ActionContext)1 StubValueStack (com.opensymphony.xwork2.StubValueStack)1 Configuration (com.opensymphony.xwork2.config.Configuration)1 XWorkConverter (com.opensymphony.xwork2.conversion.impl.XWorkConverter)1 Container (com.opensymphony.xwork2.inject.Container)1