Class SolrJettyTestBase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
Direct Known Subclasses:
RestTestBase

@Deprecated public abstract class SolrJettyTestBase extends SolrTestCaseJ4
Deprecated.
  • Field Details

    • solrClientTestRule

      public static SolrJettyTestRule solrClientTestRule
      Deprecated.
  • Constructor Details

    • SolrJettyTestBase

      public SolrJettyTestBase()
      Deprecated.
  • Method Details

    • createAndStartJetty

      protected static JettySolrRunner createAndStartJetty(Path solrHome, String configFile, String schemaFile, String context, boolean stopAtShutdown, SortedMap<org.eclipse.jetty.ee10.servlet.ServletHolder,String> extraServlets) throws Exception
      Deprecated.
      Throws:
      Exception
    • createAndStartJetty

      protected static JettySolrRunner createAndStartJetty(Path solrHome, String configFile, String context) throws Exception
      Deprecated.
      Throws:
      Exception
    • createAndStartJetty

      protected static JettySolrRunner createAndStartJetty(Path solrHome, JettyConfig jettyConfig) throws Exception
      Deprecated.
      Throws:
      Exception
    • createAndStartJetty

      protected static JettySolrRunner createAndStartJetty(Path solrHome) throws Exception
      Deprecated.
      Throws:
      Exception
    • createAndStartJetty

      protected static JettySolrRunner createAndStartJetty(Path solrHome, Properties nodeProperties, JettyConfig jettyConfig) throws Exception
      Deprecated.
      Throws:
      Exception
    • getJetty

      protected static JettySolrRunner getJetty()
      Deprecated.
    • getBaseUrl

      protected static String getBaseUrl()
      Deprecated.
      URL to Solr
    • getCoreUrl

      protected static String getCoreUrl()
      Deprecated.
      URL to the core
    • getSolrClient

      protected org.apache.solr.client.solrj.SolrClient getSolrClient()
      Deprecated.
    • createNewSolrClient

      public org.apache.solr.client.solrj.SolrClient createNewSolrClient()
      Deprecated.
      Create a new solr client. If createJetty was called, a http implementation will be created, otherwise an embedded implementation will be created. Subclasses should override for other options.
    • getHttpClient

      protected org.apache.http.client.HttpClient getHttpClient()
      Deprecated.
    • setupJettyTestHome

      @Deprecated protected static void setupJettyTestHome(Path solrHome, String collection) throws Exception
      Deprecated.
      Throws:
      Exception
    • cleanUpJettyHome

      protected static void cleanUpJettyHome(Path solrHome) throws Exception
      Deprecated.
      Throws:
      Exception