本文整理汇总了Java中org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase类的典型用法代码示例。如果您正苦于以下问题:Java ESClientYamlSuiteTestCase类的具体用法?Java ESClientYamlSuiteTestCase怎么用?Java ESClientYamlSuiteTestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ESClientYamlSuiteTestCase类属于org.elasticsearch.test.rest.yaml包,在下文中一共展示了ESClientYamlSuiteTestCase类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testFailure
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase; //导入依赖的package包/类
@Override
public void testFailure(Failure failure) throws Exception {
// Ignore assumptions.
if (failure.getException() instanceof AssumptionViolatedException) {
return;
}
final StringBuilder b = new StringBuilder("REPRODUCE WITH: gradle ");
String task = System.getProperty("tests.task");
// TODO: enforce (intellij still runs the runner?) or use default "test" but that won't work for integ
b.append(task);
GradleMessageBuilder gradleMessageBuilder = new GradleMessageBuilder(b);
gradleMessageBuilder.appendAllOpts(failure.getDescription());
// Client yaml suite tests are a special case as they allow for additional parameters
if (ESClientYamlSuiteTestCase.class.isAssignableFrom(failure.getDescription().getTestClass())) {
gradleMessageBuilder.appendClientYamlSuiteProperties();
}
System.err.println(b.toString());
}
示例2: parameters
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase; //导入依赖的package包/类
@ParametersFactory
public static Iterable<Object[]> parameters() throws IOException {
return ESClientYamlSuiteTestCase.createParameters();
}
示例3: parameters
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase; //导入依赖的package包/类
@ParametersFactory
public static Iterable<Object[]> parameters() throws Exception {
return ESClientYamlSuiteTestCase.createParameters();
}