当前位置: 首页>>代码示例>>Java>>正文


Java SnippetType类代码示例

本文整理汇总了Java中cucumber.api.SnippetType的典型用法代码示例。如果您正苦于以下问题:Java SnippetType类的具体用法?Java SnippetType怎么用?Java SnippetType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SnippetType类属于cucumber.api包,在下文中一共展示了SnippetType类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getSnippet

import cucumber.api.SnippetType; //导入依赖的package包/类
@Override
public String getSnippet(Step step, FunctionNameGenerator nameGenerator) {
    SnippetType snippetType = getSnippetType(nameGenerator);
    URI uri = uriBuilderFor(SNIPPET_URI).buildAndExpand().toUri();
    SnippetRequestDTO snippetRequest = new SnippetRequestDTO(new StepDTO(step), snippetType);
    return template.postForObject(uri, snippetRequest, String.class);
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:8,代码来源:RemoteBackend.java

示例2: SnippetRequestDTO

import cucumber.api.SnippetType; //导入依赖的package包/类
public SnippetRequestDTO(StepDTO step, SnippetType snippetType) {
    this.step = step;
    type = snippetType;
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:5,代码来源:SnippetRequestDTO.java

示例3: getType

import cucumber.api.SnippetType; //导入依赖的package包/类
public SnippetType getType() {
    return type;
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:4,代码来源:SnippetRequestDTO.java

示例4: setType

import cucumber.api.SnippetType; //导入依赖的package包/类
public void setType(SnippetType type) {
    this.type = type;
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:4,代码来源:SnippetRequestDTO.java

示例5: getSnippetType

import cucumber.api.SnippetType; //导入依赖的package包/类
public SnippetType getSnippetType(FunctionNameGenerator nameGenerator) {
    String functionName = nameGenerator.generateFunctionName(FUNCTION_NAME);
    SnippetType snippetType = snippetTypes.get(functionName);
    return Preconditions.checkNotNull(snippetType, "FunctionNameGenerator is not camel case or underscore (it generated %s)", functionName);
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:6,代码来源:RemoteBackend.java

示例6: getSnippet

import cucumber.api.SnippetType; //导入依赖的package包/类
public String getSnippet(StepDTO serializableStep, SnippetType type) {
    return backend.getSnippet(serializableStep.toStep(), type.getFunctionNameGenerator());
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:4,代码来源:BackendContext.java

示例7: getSnippets

import cucumber.api.SnippetType; //导入依赖的package包/类
public SnippetType getSnippets() {
    return snippets;
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:4,代码来源:CucumberProperties.java

示例8: setSnippets

import cucumber.api.SnippetType; //导入依赖的package包/类
public void setSnippets(SnippetType snippets) {
    this.snippets = snippets;
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:4,代码来源:CucumberProperties.java


注:本文中的cucumber.api.SnippetType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。