Class ClientYamlTestSuite
java.lang.Object
org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
public class ClientYamlTestSuite
extends java.lang.Object
Holds a REST test suite loaded from a specific yaml file.
Supports a setup section and multiple test sections.
-
Constructor Summary
Constructors Constructor Description ClientYamlTestSuite(java.lang.String api, java.lang.String name, SetupSection setupSection, TeardownSection teardownSection, java.util.List<ClientYamlTestSection> testSections)
-
Method Summary
Modifier and Type Method Description java.lang.String
getApi()
java.lang.String
getName()
java.lang.String
getPath()
SetupSection
getSetupSection()
TeardownSection
getTeardownSection()
java.util.List<ClientYamlTestSection>
getTestSections()
static ClientYamlTestSuite
parse(java.lang.String api, java.lang.String suiteName, org.elasticsearch.common.xcontent.XContentParser parser)
static ClientYamlTestSuite
parse(org.elasticsearch.common.xcontent.NamedXContentRegistry executeableSectionRegistry, java.lang.String api, java.nio.file.Path file)
void
validate()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ClientYamlTestSuite
public ClientYamlTestSuite(java.lang.String api, java.lang.String name, SetupSection setupSection, TeardownSection teardownSection, java.util.List<ClientYamlTestSection> testSections)
-
-
Method Details
-
parse
public static ClientYamlTestSuite parse(org.elasticsearch.common.xcontent.NamedXContentRegistry executeableSectionRegistry, java.lang.String api, java.nio.file.Path file) throws java.io.IOException- Throws:
java.io.IOException
-
parse
public static ClientYamlTestSuite parse(java.lang.String api, java.lang.String suiteName, org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
getApi
public java.lang.String getApi() -
getName
public java.lang.String getName() -
getPath
public java.lang.String getPath() -
getSetupSection
-
getTeardownSection
-
validate
public void validate() -
getTestSections
-