Package org.elasticsearch.test
package org.elasticsearch.test
-
Interface SummaryInterfaceDescriptionA 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.
-
Class SummaryClassDescriptionAbstractBroadcastResponseTestCase<T extends org.elasticsearch.action.support.broadcast.BroadcastResponse>AbstractDiffableSerializationTestCase<T extends org.elasticsearch.cluster.Diffable<T> & org.elasticsearch.common.xcontent.ToXContent>An abstract test case to ensure correct behavior of Diffable.AbstractDiffableWireSerializationTestCase<T extends org.elasticsearch.cluster.Diffable<T>>An abstract test case to ensure correct behavior of Diffable.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.common.xcontent.ToXContent>Test case for validating
ToXContent
objects against a json schema.AbstractSerializingTestCase<T extends org.elasticsearch.common.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.common.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.ESIntegTestCase
is an abstract base class to run integration tests against a JVM private Elasticsearch Cluster.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.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.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 -
Enum Class SummaryEnum ClassDescriptionThe scope of a test cluster used together with
ESIntegTestCase.ClusterScope
annotations onESIntegTestCase
subclasses. -
Annotation Interfaces SummaryAnnotation InterfaceDescriptionDefines a cluster scope for a
ESIntegTestCase
subclass.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.