![JAR search and dependency download from the Maven repository](/logo.png)
org.alfresco.mock.test.ws.MockContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alfresco-tests Show documentation
Show all versions of alfresco-tests Show documentation
This is a jar project based on mock classes to test fastly the alfresco applications
The newest version!
package org.alfresco.mock.test.ws;
import java.util.HashMap;
import java.util.Map;
import org.alfresco.repo.content.MimetypeMap;
import org.springframework.extensions.config.ConfigService;
import org.springframework.extensions.webscripts.Container;
import org.springframework.extensions.webscripts.FormatRegistry;
import org.springframework.extensions.webscripts.Registry;
import org.springframework.extensions.webscripts.ScriptParameterFactoryRegistry;
import org.springframework.extensions.webscripts.ScriptProcessorRegistry;
import org.springframework.extensions.webscripts.SearchPath;
import org.springframework.extensions.webscripts.ServerModel;
import org.springframework.extensions.webscripts.TemplateProcessorRegistry;
public class MockContainer implements Container {
private Map templateParameters = new HashMap();
private SearchPath searchPath = new SearchPath();
private ScriptProcessorRegistry scriptProcessorRegistry = new ScriptProcessorRegistry();
private TemplateProcessorRegistry templateProcessorRegistry = new MockTemplateProcessorRegistry();
private FormatRegistry formatRegistry = new FormatRegistry();
{
Map formats = new HashMap();
formats.put("json", MimetypeMap.MIMETYPE_JSON);
formats.put("xls", MimetypeMap.MIMETYPE_EXCEL);
formatRegistry.addFormats(null, formats);
}
@Override
public String getName() {
// TODO Auto-generated method stub
return null;
}
@Override
public ServerModel getDescription() {
// TODO Auto-generated method stub
return null;
}
@Override
public ScriptProcessorRegistry getScriptProcessorRegistry() {
return scriptProcessorRegistry;
}
@Override
public ScriptParameterFactoryRegistry getScriptParameterFactoryRegistry() {
// TODO Auto-generated method stub
return null;
}
@Override
public Map getScriptParameters() {
// TODO Auto-generated method stub
return null;
}
@Override
public TemplateProcessorRegistry getTemplateProcessorRegistry() {
return templateProcessorRegistry;
}
@Override
public Map getTemplateParameters() {
// TODO Auto-generated method stub
return templateParameters;
}
@Override
public FormatRegistry getFormatRegistry() {
return formatRegistry;
}
@Override
public Registry getRegistry() {
// TODO Auto-generated method stub
return null;
}
@Override
public SearchPath getSearchPath() {
return searchPath;
}
@Override
public ConfigService getConfigService() {
// TODO Auto-generated method stub
return null;
}
@Override
public boolean allowCallbacks() {
// TODO Auto-generated method stub
return false;
}
@Override
public void reset() {
// TODO Auto-generated method stub
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy