SEARCH-492: Giving tests their own namespace

This commit is contained in:
Gethin James
2017-08-04 10:25:19 +02:00
parent 132ad8d056
commit d7870d6b43
3 changed files with 4 additions and 4 deletions
@@ -1722,9 +1722,9 @@ 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, Properties solrcoreProperties)
public JettyServerRule(int numShards, AbstractAlfrescoDistributedTest testClass, Properties solrcoreProperties)
{
this.serverName = DEFAULT_TEST_CORENAME;
this.serverName = testClass.getClass().getSimpleName();
coreNames = new String[]{DEFAULT_TEST_CORENAME};
this.numShards = numShards;
this.solrcoreProperties = solrcoreProperties;
@@ -59,7 +59,7 @@ import org.junit.Test;
public class DistributedAclIdAlfrescoSolrTrackerTest extends AbstractAlfrescoDistributedTest
{
@Rule
public JettyServerRule jetty = new JettyServerRule(2,getShardMethod());
public JettyServerRule jetty = new JettyServerRule(2,this, getShardMethod());
@Test
public void testAclId() throws Exception
@@ -60,7 +60,7 @@ import org.junit.Test;
public class DistributedDbidRangeAlfrescoSolrTrackerTest extends AbstractAlfrescoDistributedTest
{
@Rule
public JettyServerRule jetty = new JettyServerRule(2,getShardMethod());
public JettyServerRule jetty = new JettyServerRule(2,this, getShardMethod());
@Test
public void testDbIdRange() throws Exception