use of com.opensymphony.xwork2.config.impl.MockConfiguration in project struts by apache.
the class ConfigurationTestBase method buildConfigurationProvider.
protected ConfigurationProvider buildConfigurationProvider(final String filename) {
configuration = new MockConfiguration();
((MockConfiguration) configuration).selfRegister();
container = configuration.getContainer();
XmlConfigurationProvider prov = new StrutsXmlConfigurationProvider(filename);
container.inject(prov);
prov.init(configuration);
prov.loadPackages();
return prov;
}
Aggregations