Package org.elasticsearch.test
Class BuildUtils
java.lang.Object
org.elasticsearch.test.BuildUtils
Utilities for copying and mutating Build instances in tests.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
BuildUtils
public BuildUtils()
-
-
Method Details
-
newBuild
Creates a new Build instance, using and existing build instance as a template.- Parameters:
existing
- A Build instance which will be copiedextraArgs
- A map of arguments to the Build constructor which will override values in theexisting
instance- Returns:
- A new Build instance
-
mutateBuild
Creates a random mutation of the given Build instance. The existing build instance is copied with a single field randomly changed. The value for the field is randomized.- Parameters:
existing
- The existing instance to mutate- Returns:
- A new Build instance
-