Package org.apache.solr.util
Misc utilities useful when implementing test cases.
-
Interface Summary Interface Description RESTfulServerProvider -
Class Summary Class Description BadZookeeperThreadsFilter BaseTestHarness DirectoryUtil DOMUtilTestBase ErrorLogMuter Helper code for "Muting" ERROR log messages that you expect as a result of the things you are testing, so they aren't a distraction in test logs.ExternalPaths Some tests need to reach outside the classpath to get certain resources (e.g.LogLevel.Configurer LogListener Helper code to listen forLogEvent
messages (via aQueue
) that you expect as a result of the things you are testing, So you can make assertions about when a particular action should/shouldn't cause Solr to produce a particular Log messageMockCoreContainer MockCoreContainer.MockCoreDescriptor NotSecurePseudoRandomSpi A mocked up instance of SecureRandom that just usesRandom
under the covers.QueryMatchers RandomForceMergePolicy AMergePolicy
with a no-arg constructor that proxies to aForceMergePolicy
wrapped instance retrieved fromLuceneTestCase.newMergePolicy(java.util.Random)
.RandomForceMergePolicyFactory AMergePolicyFactory
forRandomForceMergePolicy
.RandomizeSSL.SSLRandomizer A simple data structure for encapsulating the effective values to be used when randomizing SSL in a test, based on the configured values in theRandomizeSSL
annotation.RandomMergePolicy AMergePolicy
with a no-arg constructor that proxies to an instance retrieved fromLuceneTestCase.newMergePolicy(java.util.Random)
.RandomMergePolicyFactory AMergePolicyFactory
forRandomMergePolicy
.ReadOnlyCoresLocator RestTestBase RestTestHarness Facilitates testing Solr's REST API via a provided embedded JettyRevertDefaultThreadHandlerRule SolrTestNonSecureRandomProvider SSLTestConfig An SSLConfig that providesSSLConfig
andHttpClientUtil.SocketFactoryRegistryProvider
for both clients and servers that supports reading key/trust store information directly from resource files provided with the Solr test-framework classesTestHarness This class provides a simple harness that may be useful when writing testcases.TestHarness.TestCoresLocator -
Annotation Types Summary Annotation Type Description LogLevel Annotation specifying the log level for a particular test case or methodRandomizeSSL Marker annotation indicating when SSL Randomization should be used for a test class, and if so what the typical odds of using SSL should for that test class.