本文整理汇总了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());
}
开发者ID:justor,项目名称:elasticsearch_my,代码行数:23,代码来源:ReproduceInfoPrinter.java
示例2: parameters
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase; //导入依赖的package包/类
@ParametersFactory
public static Iterable<Object[]> parameters() throws IOException {
return ESClientYamlSuiteTestCase.createParameters();
}
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:DocsClientYamlTestSuiteIT.java
示例3: parameters
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase; //导入依赖的package包/类
@ParametersFactory
public static Iterable<Object[]> parameters() throws Exception {
return ESClientYamlSuiteTestCase.createParameters();
}
开发者ID:jsuchenia,项目名称:elasticsearch-prometheus-metrics,代码行数:5,代码来源:PrometheusExporterPluginIT.java
注:本文中的org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论