• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ExamplesTableFactory类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getConfiguration

import org.jbehave.core.model.ExamplesTableFactory; //导入依赖的package包/类
@Produces
@Singleton
@ConfigurationAlternative
@WeldConfiguration
public Configuration getConfiguration()
{
  LOG.info("ConfigurationProducer.getConfiguration()");

  Keywords keywords = new LocalizedKeywords();

  ParameterConverters converters = new ParameterConverters().addConverters(new DateConverter(new SimpleDateFormat("yyyy-MM-dd")), new StoryParameterEnumConverter());

  return new MostUsefulConfiguration().useStoryControls(new StoryControls().doDryRun(runConfig.doDryRun()).doSkipScenariosAfterFailure(false))

  .useStepPatternParser(new RegexPrefixCapturingPatternParser()).useStoryLoader(new LoadFromClasspath(this.getClass().getClassLoader()))

  .useKeywords(keywords).useStepCollector(new MarkUnmatchedStepsAsPending(keywords)).useStoryParser(new RegexStoryParser(keywords, new ExamplesTableFactory(keywords, new LoadFromClasspath(this.getClass()), converters))).useDefaultStoryReporter(new ConsoleOutput(keywords))

  .useStoryReporterBuilder(new StoryReporterBuilder().withFormats(Format.CONSOLE, Format.TXT, Format.STATS, WebDriverHtmlOutputWithImg.WEB_DRIVER_HTML_WITH_IMG).withFailureTrace(true).withReporters(new LoggingStoryReporter()).withKeywords(keywords)).useParameterConverters(converters);
}
 
开发者ID:partnet,项目名称:seauto,代码行数:21,代码来源:DefaultConfigurationProducer.java


示例2: configuration

import org.jbehave.core.model.ExamplesTableFactory; //导入依赖的package包/类
@Override
public Configuration configuration() {
    Class<? extends Embeddable> embeddableClass = this.getClass();
    // Start from default ParameterConverters instance
    ParameterConverters parameterConverters = new ParameterConverters();
    // factory to allow parameter conversion and loading from external resources (used by StoryParser too)
    ExamplesTableFactory examplesTableFactory = new ExamplesTableFactory(new LocalizedKeywords(), new LoadFromClasspath(embeddableClass), parameterConverters);
    // add custom converters
    parameterConverters.addConverters(
            new DateConverter(new SimpleDateFormat("yyyy-MM-dd")),
            new ParameterConverters.EnumConverter()
    );
    return new MostUsefulConfiguration()
            .useStoryLoader(new LoadFromClasspath(embeddableClass))
            .useStoryParser(new RegexStoryParser(examplesTableFactory))
            .useStoryReporterBuilder(new StoryReporterBuilder()
                    .withCodeLocation(CodeLocations.codeLocationFromClass(embeddableClass))
                    .withDefaultFormats()
                    .withFormats(CONSOLE, TXT, HTML, XML))
            .useParameterConverters(parameterConverters);
}
 
开发者ID:apache,项目名称:rave,代码行数:22,代码来源:Stories.java


示例3: configuration

import org.jbehave.core.model.ExamplesTableFactory; //导入依赖的package包/类
@Override
public Configuration configuration() {
    Class<? extends Embeddable> embeddableClass = this.getClass();
    // Start from default ParameterConverters instance
    ParameterConverters parameterConverters = new ParameterConverters();
    // factory to allow parameter conversion and loading from external resources (used by StoryParser too)
    ExamplesTableFactory examplesTableFactory = new ExamplesTableFactory(new LocalizedKeywords(), new LoadFromClasspath(embeddableClass), parameterConverters);
    // add custom converters
    parameterConverters.addConverters(new DateConverter(new SimpleDateFormat("yyyy-MM-dd")),
            new ExamplesTableConverter(examplesTableFactory));
    return new MostUsefulConfiguration()
        .useStoryLoader(new LoadFromClasspath(embeddableClass))
        .useStoryParser(new RegexStoryParser(examplesTableFactory)) 
        .useStoryReporterBuilder(new StoryReporterBuilder()
            .withCodeLocation(CodeLocations.codeLocationFromClass(embeddableClass))
            .withDefaultFormats()
            .withFormats(CONSOLE, TXT, HTML, XML))
        .useParameterConverters(parameterConverters);
}
 
开发者ID:wemanity,项目名称:Acceptance-Tests-with-JBehave,代码行数:20,代码来源:MyStories.java


示例4: configuration

import org.jbehave.core.model.ExamplesTableFactory; //导入依赖的package包/类
@Override
public Configuration configuration() {
    Class<? extends Embeddable> embeddableClass = this.getClass();
    // Start from default ParameterConverters instance
    ParameterConverters parameterConverters = new ParameterConverters();
    // factory to allow parameter conversion and loading from external resources (used by StoryParser too)
    ExamplesTableFactory examplesTableFactory = new ExamplesTableFactory(new LocalizedKeywords(), new LoadFromClasspath(embeddableClass), parameterConverters);
    // add custom converters
    parameterConverters.addConverters(new DateConverter(new SimpleDateFormat("yyyy-MM-dd")),
            new ExamplesTableConverter(examplesTableFactory));
    return new MostUsefulConfiguration()
    .useStoryLoader(new LoadFromClasspath(embeddableClass))
    .useStoryParser(new RegexStoryParser(examplesTableFactory))
    .useStoryReporterBuilder(new StoryReporterBuilder()
    .withCodeLocation(CodeLocations.codeLocationFromClass(embeddableClass))
    .withDefaultFormats()
    .withFormats(CONSOLE, TXT, HTML, XML))
    .useParameterConverters(parameterConverters);
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:20,代码来源:MyStories.java


示例5: configuration

import org.jbehave.core.model.ExamplesTableFactory; //导入依赖的package包/类
@Override
  public Configuration configuration() {
      Class<? extends Embeddable> embeddableClass = this.getClass();
      // Start from default ParameterConverters instance
      ParameterConverters parameterConverters = new ParameterConverters();
      // factory to allow parameter conversion and loading from external resources (used by StoryParser too)
      ExamplesTableFactory examplesTableFactory = new ExamplesTableFactory(new LocalizedKeywords(), new LoadFromClasspath(embeddableClass), parameterConverters);
      // add custom coverters
      parameterConverters.addConverters(new DateConverter(new SimpleDateFormat("yyyy-MM-dd")),
              new ExamplesTableConverter(examplesTableFactory));
    //  parameterConverters.addConverters(new MyConverter());
   //   parameterConverters.addConverters(new StudentConverter(new ExamplesTableFactory()));

CrossReference xref = new CrossReference();
return new MostUsefulConfiguration()
          .useStoryLoader(new LoadFromClasspath(embeddableClass))
          .useStoryParser(new RegexStoryParser(examplesTableFactory)) 
          .useStoryReporterBuilder(new StoryReporterBuilder()
              .withCodeLocation(CodeLocations.codeLocationFromClass(embeddableClass))
              .withDefaultFormats()
              .withCrossReference(xref )
              .withFormats(CONSOLE, TXT, WebDriverHtmlOutput.WEB_DRIVER_HTML, XML))
          .useParameterConverters(parameterConverters);
  }
 
开发者ID:saikrishna321,项目名称:JBehave-Selendroid-Android-Automation,代码行数:25,代码来源:MyStoriesMaps.java


示例6: configuration

import org.jbehave.core.model.ExamplesTableFactory; //导入依赖的package包/类
@Override
public Configuration configuration() {
    return new MostUsefulConfiguration()
        .useStoryParser(new RegexStoryParser(new ExamplesTableFactory(new LoadFromClasspath(this.getClass()))))
        .useStoryReporterBuilder(new StoryReporterBuilder()
            .withCodeLocation(CodeLocations.codeLocationFromClass(this.getClass())));
}
 
开发者ID:deniskiriusin,项目名称:combinatorius,代码行数:8,代码来源:CombinatoriusStoryMaps.java


示例7: configuration

import org.jbehave.core.model.ExamplesTableFactory; //导入依赖的package包/类
@Override
public Configuration configuration() {
    Class<? extends Embeddable> embeddableClass = this.getClass();
    Properties viewResources = new Properties();
    viewResources.put("decorateNonHtml", "true");
    viewResources.put("reports", "ftl/jbehave-reports-with-totals.ftl");
    // Start from default ParameterConverters instance
    ParameterConverters parameterConverters = new ParameterConverters();
    // factory to allow parameter conversion and loading from external resources (used by StoryParser too)
    ExamplesTableFactory examplesTableFactory = new ExamplesTableFactory(new LocalizedKeywords(), new LoadFromClasspath(embeddableClass), parameterConverters, new TableTransformers());
    // add custom converters
    parameterConverters.addConverters(new DateConverter(new SimpleDateFormat("yyyy-MM-dd")),
            new ExamplesTableConverter(examplesTableFactory));
    return new MostUsefulConfiguration()
        .useStoryLoader(new LoadFromClasspath(embeddableClass))
        .useStoryParser(new RegexStoryParser(examplesTableFactory)) 
        .useStoryReporterBuilder(new StoryReporterBuilder()
            .withCodeLocation(CodeLocations.codeLocationFromClass(embeddableClass))
            .withDefaultFormats()
            .withViewResources(viewResources)
            .withFormats(CONSOLE, TXT, HTML_TEMPLATE, XML_TEMPLATE)
            .withFailureTrace(true)
            .withFailureTraceCompression(true)                
            .withCrossReference(xref)) 
        .useParameterConverters(parameterConverters)                     
        // use '%' instead of '$' to identify parameters
        .useStepPatternParser(new RegexPrefixCapturingPatternParser(
                        "%")) 
        .useStepMonitor(xref.getStepMonitor());                               
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:31,代码来源:TraderStories.java


示例8: configuration

import org.jbehave.core.model.ExamplesTableFactory; //导入依赖的package包/类
@Override
public Configuration configuration() {
    Class<? extends Embeddable> embeddableClass = this.getClass();
    Properties viewResources = new Properties();
    viewResources.put("decorateNonHtml", "true");
    // Start from default ParameterConverters instance
    ParameterConverters parameterConverters = new ParameterConverters();
    // factory to allow parameter conversion and loading from external
    // resources (used by StoryParser too)
    ExamplesTableFactory examplesTableFactory = new ExamplesTableFactory(new LocalizedKeywords(),
            new LoadFromClasspath(embeddableClass), parameterConverters, new TableTransformers());
    // add custom converters
    parameterConverters.addConverters(new DateConverter(new SimpleDateFormat("yyyy-MM-dd")),
            new ExamplesTableConverter(examplesTableFactory));

    return new MostUsefulConfiguration()
            .useStoryControls(new StoryControls().doDryRun(false).doSkipScenariosAfterFailure(false))
            .useStoryLoader(new LoadFromClasspath(embeddableClass))
            .useStoryParser(new RegexStoryParser(examplesTableFactory))
            .useStoryPathResolver(new UnderscoredCamelCaseResolver())
            .useStoryReporterBuilder(
                    new StoryReporterBuilder()
                            .withCodeLocation(CodeLocations.codeLocationFromClass(embeddableClass))
                            .withDefaultFormats().withPathResolver(new ResolveToPackagedName())
                            .withViewResources(viewResources).withFormats(CONSOLE, TXT, HTML, XML)
                            .withFailureTrace(true).withFailureTraceCompression(true).withCrossReference(xref))
            .useParameterConverters(parameterConverters)
            // use '%' instead of '$' to identify parameters
            .useStepPatternParser(new RegexPrefixCapturingPatternParser("%")).useStepMonitor(xref.getStepMonitor());
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:31,代码来源:TraderStory.java


示例9: configuration

import org.jbehave.core.model.ExamplesTableFactory; //导入依赖的package包/类
@Override
public Configuration configuration() {
	Class<? extends Embeddable> embeddableClass = this.getClass();
	// Start from default ParameterConverters instance
	ParameterConverters parameterConverters = new ParameterConverters();
	// factory to allow parameter conversion and loading from external
	// resources (used by StoryParser too)
	ExamplesTableFactory examplesTableFactory = new ExamplesTableFactory(
			new LocalizedKeywords(),
			new LoadFromClasspath(embeddableClass), parameterConverters);
	// add custom coverters
	parameterConverters.addConverters(new DateConverter(
			new SimpleDateFormat("yyyy-MM-dd")),
			new ExamplesTableConverter(examplesTableFactory));
	// parameterConverters.addConverters(new MyConverter());
	// parameterConverters.addConverters(new StudentConverter(new
	// ExamplesTableFactory()));

	return new MostUsefulConfiguration()
			.useStoryLoader(new LoadFromClasspath(embeddableClass))
			.useStoryParser(new RegexStoryParser(examplesTableFactory))
			.useStoryReporterBuilder(
					new StoryReporterBuilder()
							.withCodeLocation(
									CodeLocations
											.codeLocationFromClass(embeddableClass))
							.withDefaultFormats()
							.withFormats(CONSOLE, TXT, HTML, XML).withCrossReference(xref))
			.useParameterConverters(parameterConverters)
			.useStepMonitor(xref.getStepMonitor());
}
 
开发者ID:saikrishna321,项目名称:JBehave-Selendroid-Android-Automation,代码行数:32,代码来源:MyStories.java


示例10: customConverters

import org.jbehave.core.model.ExamplesTableFactory; //导入依赖的package包/类
private ParameterConverter[] customConverters(Keywords keywords) {
    List<ParameterConverter> converters = new ArrayList<ParameterConverter>();
    converters.add(new NumberConverter(NumberFormat.getInstance(locale())));
    converters.add(new ExamplesTableConverter(new ExamplesTableFactory(keywords)));
    return converters.toArray(new ParameterConverter[converters.size()]);
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:7,代码来源:LocalizedTraderStories.java


示例11: ExamplesTableConverter

import org.jbehave.core.model.ExamplesTableFactory; //导入依赖的package包/类
public ExamplesTableConverter() {
    this(new ExamplesTableFactory());
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:4,代码来源:ParameterConverters.java


示例12: RegexStoryParser

import org.jbehave.core.model.ExamplesTableFactory; //导入依赖的package包/类
public RegexStoryParser(Keywords keywords) {
    this(keywords, new ExamplesTableFactory());
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:4,代码来源:RegexStoryParser.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Parameter类代码示例发布时间:2022-05-23
下一篇:
Java LocalSecondaryIndex类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap