Class SolrTestCase

  • Direct Known Subclasses:
    DOMUtilTestBase, SolrTestCaseJ4

    public class SolrTestCase
    extends org.apache.lucene.util.LuceneTestCase
    All Solr test cases should derive from this class eventually. This is originally a result of async logging, see: SOLR-12055 and associated. To enable async logging, we must gracefully shut down logging. Many Solr tests subclass LuceneTestCase. Rather than add the cruft from SolrTestCaseJ4 to all the Solr tests that currently subclass LuceneTestCase, we'll add the shutdown to this class and subclass it. Other changes that should affect every Solr test case may go here if they don't require the added capabilities in SolrTestCaseJ4.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.lucene.util.LuceneTestCase

        org.apache.lucene.util.LuceneTestCase.AwaitsFix, org.apache.lucene.util.LuceneTestCase.BadApple, org.apache.lucene.util.LuceneTestCase.Monster, org.apache.lucene.util.LuceneTestCase.Nightly, org.apache.lucene.util.LuceneTestCase.Slow, org.apache.lucene.util.LuceneTestCase.SuppressCodecs, org.apache.lucene.util.LuceneTestCase.SuppressFileSystems, org.apache.lucene.util.LuceneTestCase.SuppressFsync, org.apache.lucene.util.LuceneTestCase.SuppressReproduceLine, org.apache.lucene.util.LuceneTestCase.SuppressSysoutChecks, org.apache.lucene.util.LuceneTestCase.SuppressTempFileChecks, org.apache.lucene.util.LuceneTestCase.ThrowingRunnable, org.apache.lucene.util.LuceneTestCase.Weekly
    • Field Summary

      • Fields inherited from class org.apache.lucene.util.LuceneTestCase

        assertsAreEnabled, classRules, DEFAULT_LINE_DOCS_FILE, INFOSTREAM, JENKINS_LARGE_LINE_DOCS_FILE, LEAVE_TEMPORARY, MAYBE_CACHE_POLICY, RANDOM_MULTIPLIER, ruleChain, suiteFailureMarker, SYSPROP_AWAITSFIX, SYSPROP_BADAPPLES, SYSPROP_FAILFAST, SYSPROP_MAXFAILURES, SYSPROP_MONSTER, SYSPROP_NIGHTLY, SYSPROP_SLOW, SYSPROP_WEEKLY, TEST_ASSERTS_ENABLED, TEST_AWAITSFIX, TEST_BADAPPLES, TEST_CODEC, TEST_DIRECTORY, TEST_DOCVALUESFORMAT, TEST_LINE_DOCS_FILE, TEST_MONSTER, TEST_NIGHTLY, TEST_POSTINGSFORMAT, TEST_SLOW, TEST_THROTTLING, TEST_WEEKLY, VERBOSE
    • Constructor Summary

      Constructors 
      Constructor Description
      SolrTestCase()  
    • Constructor Detail

      • SolrTestCase

        public SolrTestCase()
    • Method Detail