Package org.elasticsearch.test
package org.elasticsearch.test
-
ClassDescriptionAbstractBWCSerializationTestCase<T extends Writeable & org.elasticsearch.xcontent.ToXContent>AbstractNamedWriteableTestCase<T extends NamedWriteable>Standard test case for testing the wire serialization of subclasses of NamedWriteable.AbstractQueryTestCase<QB extends AbstractQueryBuilder<QB>>Tests a query vector builderAbstractSerializationTestCase<T extends Writeable>AbstractWireSerializingTestCase<T extends Writeable>Standard test case for testing the wire serialization of subclasses of Writeable.Standard test case for testing wire serialization.AbstractXContentSerializingTestCase<T extends org.elasticsearch.xcontent.ToXContent & Writeable>AbstractXContentTestCase<T extends org.elasticsearch.xcontent.ToXContent>Tests converting to and from xcontent.Test utilities for working with
ActionListener
s.Test case ordering to be used in conjunction withTestCaseOrdering
.Utilities for copying and mutating Build instances in tests.Equality matcher forByteSizeValue
that has a nice description of failures.Test utilities for working withCheckedFunction
s andCheckedSupplier
s.An abstract test case to ensure correct behavior of Diffable.Adapter to make one or moreTestCluster
instances compatible with things like try-with-resources blocks and IOUtils.Utilities that simplify testing of diffable classesEnum serialization viaStreamOutput.writeEnum(E)
andStreamInput.readEnum(Class)
uses the enum value's ordinal on the wire.Utility 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.Marks a test suite or a test method that should run without security manager enabled.Deprecated, for removal: This API element is subject to removal in a future version.The GraalVM spawns extra threads, which causes our thread leak detection to fail.InternalAggregationTestCase<T extends InternalAggregation>Implementors of this test case should be aware that the aggregation under test needs to be registered in the test's namedWriteableRegistry.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.JNA has a special thread to cleanup native memory references.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 correctlyKeeps track of whether theLogEvent
instances it receives match the expected content.Utilities for setting up Mockito mocks.Excludes threads started byGlobalEventExecutor
which are static per-JVM and reused across test suits.NeverMatcher<T>Utility 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.A small set of privileged operations that can be executed by unprivileged test code.Utility class for checking that objects become unreachable when expected.SimpleDiffableSerializationTestCase<T extends Diffable<T> & org.elasticsearch.xcontent.ToXContent>An abstract test case to ensure correct behavior of Diffable.SimpleDiffableWireSerializationTestCase<T extends 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.When using shared test clusters we launch processes that persist across test suites.Utilities for selecting versions in tests
ESIntegTestCase
for internal-cluster tests orESRestTestCase
otherwise.