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


Java HookDefinition类代码示例

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


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

示例1: HookDefinitionDTO

import cucumber.runtime.HookDefinition; //导入依赖的package包/类
public HookDefinitionDTO(UUID glueId, long id, HookDefinition hookDefinition) {
    this.glueId = glueId;
    this.id = id;
    this.order = hookDefinition.getOrder();
    this.location = hookDefinition.getLocation(false);
    this.detailedLocation = hookDefinition.getLocation(true);
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:8,代码来源:HookDefinitionDTO.java

示例2: execute

import cucumber.runtime.HookDefinition; //导入依赖的package包/类
public HookExecutionResult execute(UUID uuid, long id, ScenarioDTO scenarioDto) throws Throwable {
    SimpleGlue glue = glues.get(uuid);
    Scenario scenarioAdapter = new ScenarioAdapter(scenarioDto);
    HookDefinition hookDefinition = glue.hookDefinition(id);
    try {
        hookDefinition.execute(scenarioAdapter);
    } catch (Exception e) {
        return new HookExecutionResult(scenarioDto, e);
    }
    return new HookExecutionResult(scenarioDto);
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:12,代码来源:BackendContext.java

示例3: matches

import cucumber.runtime.HookDefinition; //导入依赖的package包/类
public boolean matches(UUID uuid, long id, Collection<TagDTO> tags) {
    SimpleGlue glue = glues.get(uuid);
    HookDefinition hookDefinition = glue.hookDefinition(id);
    return hookDefinition.matches(convertTags(tags));
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:6,代码来源:BackendContext.java

示例4: addBeforeHook

import cucumber.runtime.HookDefinition; //导入依赖的package包/类
@Override
public void addBeforeHook(HookDefinition hookDefinition) {
    long id = HOOK_DEF_ID_GENERATOR.incrementAndGet();
    hookDefinitions.put(id, hookDefinition);
    beforeHookDefinitions.put(id, hookDefinition);
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:7,代码来源:SimpleGlue.java

示例5: addAfterHook

import cucumber.runtime.HookDefinition; //导入依赖的package包/类
@Override
public void addAfterHook(HookDefinition hookDefinition) {
    long id = HOOK_DEF_ID_GENERATOR.incrementAndGet();
    hookDefinitions.put(id, hookDefinition);
    afterHookDefinitions.put(id, hookDefinition);
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:7,代码来源:SimpleGlue.java

示例6: getBeforeHooks

import cucumber.runtime.HookDefinition; //导入依赖的package包/类
@Override
public List<HookDefinition> getBeforeHooks() {
    List<HookDefinition> beforeHooks = new ArrayList<HookDefinition>();
    beforeHooks.addAll(beforeHookDefinitions.values());
    return beforeHooks;
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:7,代码来源:SimpleGlue.java

示例7: getAfterHooks

import cucumber.runtime.HookDefinition; //导入依赖的package包/类
@Override
public List<HookDefinition> getAfterHooks() {
    List<HookDefinition> afterHooks = new ArrayList<HookDefinition>();
    afterHooks.addAll(afterHookDefinitions.values());
    return afterHooks;
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:7,代码来源:SimpleGlue.java

示例8: hookDefinition

import cucumber.runtime.HookDefinition; //导入依赖的package包/类
public HookDefinition hookDefinition(Long id) {
    return hookDefinitions.get(id);
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:4,代码来源:SimpleGlue.java

示例9: getBeforeHookDefinitions

import cucumber.runtime.HookDefinition; //导入依赖的package包/类
public Map<Long, HookDefinition> getBeforeHookDefinitions() {
    return beforeHookDefinitions;
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:4,代码来源:SimpleGlue.java

示例10: getAfterHookDefinitions

import cucumber.runtime.HookDefinition; //导入依赖的package包/类
public Map<Long, HookDefinition> getAfterHookDefinitions() {
    return afterHookDefinitions;
}
 
开发者ID:viltgroup,项目名称:minium,代码行数:4,代码来源:SimpleGlue.java


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