mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N (5.2.2) to HEAD (5.2)
133650 jvonka: REPO-908: V1 REST API - minor test fwk improvement - change default port from 8081 to 8765 (to avoid clash with Share, if already running in local dev env) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@137313 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -54,12 +54,12 @@ public abstract class AbstractTestFixture implements TestFixture
|
||||
protected TreeMap<String, TestNetwork> networks = new TreeMap<String, TestNetwork>();
|
||||
protected TreeMap<String, SiteInformation> sites = new TreeMap<String, SiteInformation>();
|
||||
|
||||
protected String[] configLocations;
|
||||
protected final String[] classLocations;
|
||||
protected int port = 8081;
|
||||
protected String contextPath = "/alfresco";
|
||||
protected String servletName = "api";
|
||||
protected String hostname = "localhost";
|
||||
private String[] configLocations;
|
||||
private final String[] classLocations;
|
||||
private int port = PORT;
|
||||
private String contextPath = CONTEXT_PATH;
|
||||
private String servletName = PUBLIC_API_SERVLET_NAME;
|
||||
|
||||
protected JettyComponent jetty;
|
||||
protected boolean cleanup;
|
||||
protected Random random = new Random();
|
||||
@@ -94,7 +94,27 @@ public abstract class AbstractTestFixture implements TestFixture
|
||||
{
|
||||
return port;
|
||||
}
|
||||
|
||||
|
||||
public String getContextPath()
|
||||
{
|
||||
return contextPath;
|
||||
}
|
||||
|
||||
public String getServletName()
|
||||
{
|
||||
return servletName;
|
||||
}
|
||||
|
||||
public String[] getConfigLocations()
|
||||
{
|
||||
return configLocations;
|
||||
}
|
||||
|
||||
public String[] getClassLocations()
|
||||
{
|
||||
return classLocations;
|
||||
}
|
||||
|
||||
protected abstract JettyComponent makeJettyComponent();
|
||||
protected abstract void populateTestData();
|
||||
protected abstract RepoService makeRepoService() throws Exception;
|
||||
|
Reference in New Issue
Block a user