Class SolrJettyTestBase

    • Field Detail

      • port

        public static int port
      • client

        public static org.apache.solr.client.solrj.SolrClient client
      • context

        public static String context
    • Constructor Detail

      • SolrJettyTestBase

        public SolrJettyTestBase()
    • Method Detail

      • beforeSolrJettyTestBase

        public static void beforeSolrJettyTestBase()
                                            throws Exception
        Throws:
        Exception
      • getServerUrl

        protected String getServerUrl()
      • afterSolrJettyTestBase

        public static void afterSolrJettyTestBase()
                                           throws Exception
        Throws:
        Exception
      • getSolrClient

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

        public org.apache.solr.client.solrj.SolrClient createNewSolrClient()
        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

        public org.apache.http.client.HttpClient getHttpClient()
      • cleanUpJettyHome

        public static void cleanUpJettyHome​(File solrHome)
                                     throws Exception
        Throws:
        Exception
      • legacyExampleCollection1SolrHome

        public static String legacyExampleCollection1SolrHome()