SEARCH-492: Giving each test its own namespace

This commit is contained in:
Gethin James
2017-07-28 14:24:33 +02:00
parent 70620e2479
commit a3511a258f
4 changed files with 16 additions and 4 deletions
@@ -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
@@ -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
@@ -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
@@ -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