Class AbstractBadConfigTestBase


  • public abstract class AbstractBadConfigTestBase
    extends SolrTestCaseJ4
    • Constructor Detail

      • AbstractBadConfigTestBase

        public AbstractBadConfigTestBase()
    • Method Detail

      • assertConfigs

        protected final void assertConfigs​(String solrconfigFile,
                                           String schemaFile,
                                           String errString)
                                    throws Exception
        Given a solrconfig.xml file name, a schema file name, and an expected errString, asserts that initializing a core with these files causes an error matching the specified errString ot be thrown.
        Throws:
        Exception
      • assertConfigs

        protected final void assertConfigs​(String solrconfigFile,
                                           String schemaFile,
                                           String solrHome,
                                           String errString)
                                    throws Exception
        Given a solrconfig.xml file name, a schema file name, a solr home directory, and an expected errString, asserts that initializing a core with these files causes an error matching the specified errString ot be thrown.
        Throws:
        Exception