mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
SEARCH-492: Giving each test its own namespace
This commit is contained in:
+13
-1
@@ -1695,13 +1695,25 @@ public abstract class AbstractAlfrescoDistributedTest extends SolrTestCaseJ4
|
||||
* Creates the jetty servers with the specified number of shards and sensible defaults.
|
||||
* @param numShards
|
||||
*/
|
||||
public JettyServerRule(int numShards)
|
||||
private JettyServerRule(int numShards)
|
||||
{
|
||||
this.serverName = DEFAULT_TEST_CORENAME;
|
||||
coreNames = new String[]{DEFAULT_TEST_CORENAME};
|
||||
this.numShards = numShards;
|
||||
this.solrcoreProperties = new Properties();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the jetty servers with the specified number of shards and sensible defaults.
|
||||
* @param numShards
|
||||
*/
|
||||
public JettyServerRule(int numShards, AbstractAlfrescoDistributedTest testClass)
|
||||
{
|
||||
this.serverName = testClass.getClass().getSimpleName();
|
||||
coreNames = new String[]{DEFAULT_TEST_CORENAME};
|
||||
this.numShards = numShards;
|
||||
this.solrcoreProperties = new Properties();
|
||||
}
|
||||
/**
|
||||
* Creates the jetty servers with the specified number of shards and sensible defaults.
|
||||
* @param numShards
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ import org.junit.Test;
|
||||
public class DistributedAlfrescoSolrFingerPrintTest extends AbstractAlfrescoDistributedTest
|
||||
{
|
||||
@Rule
|
||||
public JettyServerRule jetty = new JettyServerRule(2);
|
||||
public JettyServerRule jetty = new JettyServerRule(2, this);
|
||||
|
||||
@Test
|
||||
public void testFingerPrint() throws Exception
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@ import org.junit.Test;
|
||||
public class DistributedAlfrescoSolrSpellcheckerTest extends AbstractAlfrescoDistributedTest
|
||||
{
|
||||
@Rule
|
||||
public JettyServerRule jetty = new JettyServerRule(2);
|
||||
public JettyServerRule jetty = new JettyServerRule(2, this);
|
||||
|
||||
@Test
|
||||
public void testSpellcheckerOutputFormat() throws Exception
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ public class DistributedAlfrescoSolrTrackerTest extends AbstractAlfrescoDistribu
|
||||
{
|
||||
|
||||
@Rule
|
||||
public JettyServerRule jetty = new JettyServerRule(2);
|
||||
public JettyServerRule jetty = new JettyServerRule(2, this);
|
||||
|
||||
@Test
|
||||
public void testTracker() throws Exception
|
||||
|
||||
Reference in New Issue
Block a user