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);
}
Aggregations