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
ActionListeners.Test case ordering to be used in conjunction withTestCaseOrdering.Utilities for copying and mutating Build instances in tests.Equality matcher forByteSizeValuethat has a nice description of failures.Test utilities for working withCheckedFunctions andCheckedSuppliers.An abstract test case to ensure correct behavior of Diffable.Adapter to make one or moreTestClusterinstances 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.ESIntegTestCaseis an abstract base class to run integration tests against a JVM private Elasticsearch Cluster.Defines a cluster scope for aESIntegTestCasesubclass.The scope of a test cluster used together withESIntegTestCase.ClusterScopeannotations onESIntegTestCasesubclasses.If a test is annotated withESIntegTestCase.SuiteScopeTestCasethe checks and modifications that are applied to the used test cluster are only done after all tests of this class are executed.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 enforce entitlements on the test code itself.Marks a test suite or a test method that should run without checking for entitlements.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.Temporarily adds node paths based entitlements based on a node'ssettingsandconfigPathuntil the returned handle is closed.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 forListsthat reports all errors at once.Matcher forMapsthat reports all errors at once.TheRandomnessclass creates random generators with the same seed in every thread.A dummy http transport used by tests when not wanting to actually bind to a real address.Marker plugin used byMockNodeto enableMockHttpTransport.This is a testing plugin that registers a genericMockIndexEventListener.TestEventListeneras 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 theLogEventinstances it receives match the expected content.Utilities for setting up Mockito mocks.Excludes threads started byGlobalEventExecutorwhich are static per-JVM and reused across test suits.NeverMatcher<T>Utility methods for creatingSettingsinstances 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.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.Test rule to process skip_unavailable override annotationsAnnotation to mark specific cluster in a test as not to be skipped when unavailableBase 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
ESIntegTestCasefor internal-cluster tests orESRestTestCaseotherwise.