Package org.elasticsearch.test
package org.elasticsearch.test
-
ClassDescriptionAbstractBroadcastResponseTestCase<T extends org.elasticsearch.action.support.broadcast.BroadcastResponse>AbstractNamedWriteableTestCase<T extends org.elasticsearch.common.io.stream.NamedWriteable>Standard test case for testing the wire serialization of subclasses of NamedWriteable.AbstractQueryTestCase<QB extends org.elasticsearch.index.query.AbstractQueryBuilder<QB>>AbstractSchemaValidationTestCase<T extends org.elasticsearch.xcontent.ToXContent>Test case for validating
ToXContent
objects against a json schema.AbstractSerializingTestCase<T extends org.elasticsearch.xcontent.ToXContent & org.elasticsearch.common.io.stream.Writeable>AbstractWireSerializingTestCase<T extends org.elasticsearch.common.io.stream.Writeable>Standard test case for testing the wire serialization of subclasses of Writeable.Standard test case for testing wire serialization.AbstractXContentTestCase<T extends org.elasticsearch.xcontent.ToXContent>Tests converting to and from xcontent.Test utilities for working withActionListener
s.Test utilities for working withCheckedFunction
s andCheckedSupplier
s.Utilities that simplify testing of diffable classesUtility class that encapsulates standard checks and assertions around testing the equals() and hashCode() methods of objects that implement them.A function that makes a copy of its input argumentA function that creates a copy of its input argument that is different from its input in exactly one aspect (e.g.ESIntegTestCase
is an abstract base class to run integration tests against a JVM private Elasticsearch Cluster.Defines a cluster scope for aESIntegTestCase
subclass.The scope of a test cluster used together withESIntegTestCase.ClusterScope
annotations onESIntegTestCase
subclasses.If a test is annotated withESIntegTestCase.SuiteScopeTestCase
the checks and modifications that are applied to the used test cluster are only done after all tests of this class are executed.Annotation for third-party integration tests.A test that keep a singleton node started for all tests that can be used to get references to Guice injectors in unit tests.Base testcase for randomized unit testing with ElasticsearchThis cute helper class just holds all analysis building blocks that are used to build IndexAnalyzers.External cluster to run the tests against.InternalAggregationTestCase<T extends org.elasticsearch.search.aggregations.InternalAggregation>Implementors of this test case should be aware that the aggregation under test needs to be registered in the test's namedWriteableRegistry.InternalMultiBucketAggregationTestCase<T extends org.elasticsearch.search.aggregations.InternalAggregation & org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation>InternalTestCluster manages a set of JVM private nodes and allows convenient access to them.An abstract class that is called duringInternalTestCluster.rollingRestart(InternalTestCluster.RestartCallback)
and / orInternalTestCluster.fullRestart(InternalTestCluster.RestartCallback)
to execute actions at certain stages of the restart.Matcher forLists
that reports all errors at once.Matcher forMaps
that reports all errors at once.A dummy http transport used by tests when not wanting to actually bind to a real address.Marker plugin used byMockNode
to enableMockHttpTransport
.This is a testing plugin that registers a genericMockIndexEventListener.TestEventListener
as a node level service as well as a listener on every index.Some tests rely on the keyword tokenizer, but this tokenizer isn't part of lucene-core and therefor not available in some modules.Test appender that can be used to verify that certain events were logged correctlyUtility methods for creatingSettings
instances defining a set ofDiscoveryNodeRole
.Builds a message describing how two sets of values are unequal.Stores the posix attributes for a path and resets them on close.SimpleDiffableSerializationTestCase<T extends org.elasticsearch.cluster.Diffable<T> & org.elasticsearch.xcontent.ToXContent>An abstract test case to ensure correct behavior of Diffable.SimpleDiffableWireSerializationTestCase<T extends org.elasticsearch.cluster.Diffable<T>>An abstract test case to ensure correct behavior of Diffable.Base test cluster that exposes the basis to run tests against any elasticsearch cluster, whose layout (e.g.Deprecated.Utilities for selecting versions in tests