All Classes
-
All Classes Interface Summary Class Summary Enum Summary Annotation Types Summary Class Description AbstractBackupRepositoryTest AbstractBadConfigTestBase AbstractBasicDistributedZk2TestBase This test simply does a bunch of basic things in solrcloud mode and asserts things work as expected.AbstractBasicDistributedZkTestBase This test simply does a bunch of basic things in solrcloud mode and asserts things work as expected.AbstractChaosMonkeyNothingIsSafeTestBase AbstractChaosMonkeySafeLeaderTestBase AbstractCloudBackupRestoreTestCase Used to test the traditional (now deprecated) 'full-snapshot' method of backup/restoration.AbstractCollectionsAPIDistributedZkTestBase Tests the Cloud Collections API.AbstractDigestZkACLAndCredentialsProvidersTestBase AbstractDigestZkACLAndCredentialsProvidersTestBase.AllAndReadonlyCredentialZkCredentialsInjector AbstractDigestZkACLAndCredentialsProvidersTestBase.AllCredentialZkCredentialsInjector AbstractDigestZkACLAndCredentialsProvidersTestBase.ConnectWithReadonlyCredsInjector AbstractDigestZkACLAndCredentialsProvidersTestBase.NoCredentialZkCredentialsInjector AbstractDigestZkACLAndCredentialsProvidersTestBase.WrongAllCredentialZkCredentialsInjector AbstractDistribZkTestBase AbstractFullDistribZkTestBase TODO: we should still test this works as a custom update chain as well as what we test now - the default update chainAbstractFullDistribZkTestBase.CloudJettyRunner AbstractFullDistribZkTestBase.CloudSolrServerClient AbstractIncrementalBackupTest Used to test the incremental method of backup/restoration (as opposed to the deprecated 'full snapshot' method).AbstractInstallShardTest Base class for testing the "Install Shard API" with various backup repositories.AbstractMoveReplicaTestBase AbstractRecoveryZkTestBase AbstractRestartWhileUpdatingTestBase AbstractSyncSliceTestBase Test sync phase that occurs when Leader goes down and a new Leader is elected.AbstractTlogReplayBufferedWhileIndexingTestBase AbstractUnloadDistributedZkTestBase This test simply does a bunch of basic things in solrcloud mode and asserts things work as expected.AbstractZkTestCase Base test class for ZooKeeper tests.AttributeFetcherForTest BackupRestoreUtils BackupStatusChecker Helper class for validating when the replication handler has finished a backup.BadZookeeperThreadsFilter BaseDistributedSearchTestCase Helper base class for distributed search test casesBaseDistributedSearchTestCase.RandDate BaseDistributedSearchTestCase.RandVal BaseDistributedSearchTestCase.ShardsFixed BaseDistributedSearchTestCase.ShardsRepeat BaseTestHarness BufferingRequestProcessor Builders Builder classes to make tests using different cluster and node configurations easier to write and to read.Builders.ClusterBuilder Builders.CollectionBuilder Builders.NodeBuilder Builders.ReplicaBuilder Builders.ShardBuilder ChaosMonkey The monkey can stop random or specific jetties used with SolrCloud.CloudInspectUtil ClusterStateUtil ConfigRequest A class for making a request to the config handler.CustomSimilarityFactory DirectoryUtil DOMUtilTestBase DummyCustomParamSpellChecker A Dummy SpellChecker for testing purposesEmbeddedSolrServerTestBase Deprecated. EmbeddedSolrServerTestRule Provides an EmbeddedSolrServer for tests.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.FooQParserPlugin IpTables To use, tests must be able to run iptables, eg sudo chmod u+s iptablesJettyConfig JettyConfig.Builder JettySolrRunner Run solr using jettyJettySolrRunner.DebugFilter JettySolrRunner.Servlet404 This is a stupid hack to give jetty something to attach toJSONTestUtil LogLevel Annotation specifying the log level for a particular test case or methodLogLevel.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 messageMiniSolrCloudCluster "Mini" SolrCloud cluster to be used for testingMiniSolrCloudCluster.Builder Builder class for a MiniSolrCloudClusterMiniSolrCloudCluster.JettySolrRunnerWithMetrics MockCharFilterFactory Factory forMockCharFilter
for testing purposes.MockConfigurableSimilarity MockCoreContainer MockCoreContainer.MockCoreDescriptor MockDirectoryFactory Opens a directory withLuceneTestCase.newDirectory()
MockExchangeRateProvider Simple mock provider with fixed rates and some assertionsMockFSDirectoryFactory Opens a directory withLuceneTestCase.newFSDirectory(Path)
MockQuerySenderListenerReqHandler MockSolrZkClient MockTokenFilterFactory Factory forMockTokenFilter
for testing purposes.MockTokenizerFactory Factory forMockTokenizer
for testing purposes.MockZkStateReader MultiSolrCloudTestCase Base class for tests that require more than one SolrCloudMultiSolrCloudTestCase.DefaultClusterCreateFunction MultiSolrCloudTestCase.DefaultClusterInitFunction NotSecurePseudoRandomSpi A mocked up instance of SecureRandom that just usesRandom
under the covers.NvlValueSourceParser A sample ValueSourceParser for testing.QueryMatchers RandomForceMergePolicy AMergePolicy
with a no-arg constructor that proxies to aForceMergePolicy
wrapped instance retrieved fromLuceneTestCase.newMergePolicy(java.util.Random)
.RandomForceMergePolicyFactory AMergePolicyFactory
forRandomForceMergePolicy
.RandomizeSSL 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.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 RecordingUpdateProcessorFactory This Factory can optionally save references to the commands it receives in BlockingQueues that tests can poll from to observe that the expected commands are executed.RESTfulServerProvider RestTestBase RestTestHarness Facilitates testing Solr's REST API via a provided embedded JettyRevertDefaultThreadHandlerRule SampleComparator Comparator for testing purposesSolrClientTestRule Provides access to aSolrClient
instance and a running Solr in tests.SolrCloudAuthTestCase Base test class for cloud tests wanting to track authentication metrics.SolrCloudTestCase Base class for SolrCloud testsSolrIgnoredThreadsFilter This ignores those threads in Solr for which there is no way to clean up after a suite.SolrJettyTestBase Deprecated. SolrJettyTestRule ASolrClientTestRule
that provides a Solr instance running in Jetty, an HTTP server.SolrTestCase All Solr test cases should derive from this class eventually.SolrTestCaseHS SolrTestCaseHS.Client SolrTestCaseHS.Client.Tester SolrTestCaseHS.ClientProvider SolrTestCaseHS.SolrInstance SolrTestCaseHS.SolrInstances SolrTestCaseJ4 A junit4 Solr test harness that extends SolrTestCase and, by extension, LuceneTestCase.SolrTestCaseJ4.BVal SolrTestCaseJ4.Doc SolrTestCaseJ4.Fld SolrTestCaseJ4.FldType SolrTestCaseJ4.FVal SolrTestCaseJ4.IRange SolrTestCaseJ4.IVals SolrTestCaseJ4.IValsPercent SolrTestCaseJ4.RandomizingCloudHttp2SolrClientBuilder A variant ofCloudHttp2SolrClient.Builder
that will randomize some internal settings.SolrTestCaseJ4.RandomizingCloudSolrClientBuilder Deprecated. SolrTestCaseJ4.SuppressPointFields Annotation for test classes that want to disable PointFields.SolrTestCaseJ4.SuppressSSL Annotation for test classes that want to disable SSLSolrTestCaseJ4.SVal SolrTestCaseJ4.Vals SolrTestCaseJ4.XmlDoc Necessary to make method signatures un-ambiguousSolrTestNonSecureRandomProvider SortableBinaryField Custom field representing aBinaryField
that's sortable.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 classesStoppableCommitThread StoppableIndexingThread TestConnectionStrategy Connection strategy that creates instances ofTestableZooKeeper
instead of plainZooKeeper
objects.TestHarness This class provides a simple harness that may be useful when writing testcases.TestHarness.TestCoresLocator TestRestoreCoreUtil TrackingBackupRepository TrackingShardHandlerFactory A ShardHandlerFactory that extends HttpShardHandlerFactory and tracks requests made to nodes/shards such that interested parties can watch such requests and make assertions inside testsTrackingShardHandlerFactory.RequestTrackingQueue A queue having helper methods to select requests by shard and purpose.TrackingShardHandlerFactory.ShardRequestAndParams TrackingUpdateProcessorFactory This Factory is similar toRecordingUpdateProcessorFactory
, but with the goal of tracking requests across multiple collections/shards/replicas in aSolrCloudTestCase
.UpdateProcessorTestBase ZkTestServer ZkTestServer.HostPort ZkTestServer.LimitViolationAction