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

Java Alias类代码示例

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

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



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

示例1: thenMethodInClassHasArguments

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Then("method $methodPosition in class $classPosition has $expectedCount parameters")
@Alias("method $methodPosition in class $classPosition has $expectedCount parameter")
public void thenMethodInClassHasArguments(int methodPosition, int classPosition, int expectedCount) {
    CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1");
    MethodDeclaration method = getMethodByPositionAndClassPosition(compilationUnit, methodPosition, classPosition);

    assertThat(method.getParameters().size(), is(expectedCount));
}
 
开发者ID:plum-umd,项目名称:java-sketch,代码行数:9,代码来源:ManipulationSteps.java


示例2: setCandidateInTally

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Given("tally has candidate $candidate with $votes votes and property $property")
@Alias("tally has candidate $candidate with $votes votes and properties $property")
public void setCandidateInTally(String candidate, int votes, String property)
		throws SeatAllocationException {
	if (tally == null)
		tally = new Tally();

	tally.addCandidate(Candidate.fromString(candidate + ":" + votes + ":"
			+ property));
}
 
开发者ID:pau-minoves,项目名称:jseats,代码行数:11,代码来源:Steps.java


示例3: processWithAlgorithm

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@When("process with $method method")
@Alias("process with $method algorithm")
public void processWithAlgorithm(String method)
		throws SeatAllocationException {

	log.debug("Processing with properties: " + processor.getProperties());

	processor.setTally(tally);
	processor.setTieBreaker(tieBreaker);

	setSeatAllocationAlgorithm(method);

	result = processor.process();
}
 
开发者ID:pau-minoves,项目名称:jseats,代码行数:15,代码来源:Steps.java


示例4: theTraderRanks

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Given("the trader ranks: %ranksTable")
@Alias("the traders: %ranksTable")
public void theTraderRanks(ExamplesTable ranksTable) {
    this.ranksTable = ranksTable;
    traders.clear();
    traders.addAll(toTraders(ranksTable));
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:8,代码来源:TraderSteps.java


示例5: subsetTradersByName

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@When("traders are subset to \"%regex\" by name")
@Alias("traders are filtered by \"%regex\"")
public void subsetTradersByName(String regex) {
    searchedTraders = new ArrayList<Trader>();
    for (Trader trader : traders) {
        if ( trader.getName().matches(regex) ){
            searchedTraders.add(trader);
        }
    }
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:11,代码来源:TraderSteps.java


示例6: aCompositeStep

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Given("%customer has previously bought a %product") // used in normal parameter matching
@Alias("<customer> has previously bought a <product>") // used in parameterised scenarios
@Composite(steps = { "Given <customer> is logged in", 
                     "Given <customer> has a cart", 
                     "When a <product> is added to the cart" })  
public void aCompositeStep(@Named("customer") String customer, @Named("product") String product) { // composed steps use these named parameters 
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:8,代码来源:CompositeSteps.java


示例7: createOrganizationWithName

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Given("an organization named $orgNames")
@Alias("organizations named $orgNames")
public void createOrganizationWithName(List<String> orgNames) {
  for (String orgName : orgNames) {
    Organization org = new Organization();
    org.setName(orgName);
    org.setAuthenticationPolicy(new AuthenticationPolicy());
    organizationDao.persist(org);
  }
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:11,代码来源:OrganizationSteps.java


示例8: assertion_was_invoked_times

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Then("assertion $assertionId was invoked $invokeCount times")
@Alias("mock $assertionId was invoked $invokeCount times")
public void assertion_was_invoked_times(String assertionId, int invokeCount) throws Throwable {
	ThreadContext.get().withAssertionInvokeCount(assertionId, invokeCount);
}
 
开发者ID:wmaop,项目名称:wm-jbehave,代码行数:6,代码来源:WmJBehaveSteps.java


示例9: waitForSeconds

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Then("I wait for $seconds seconds")
@Alias("I wait for $seconds second")
public void waitForSeconds(String seconds) {
	home.wait(seconds);
}
 
开发者ID:deniskiriusin,项目名称:combinatorius,代码行数:6,代码来源:CombinatoriusSteps.java


示例10: dummy

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Given("a client $name with $number disks exported through an SMB share")
@Alias("a client <name> with <number> disks exported through an SMB share")
@Composite(steps = {
    "Given the acquisition server is running",
    "When a new client with name <name> is started",
    "Then the <number> disks of <name> are exported on a SMB share within 30 seconds"})
public void dummy(@Named("name") final String name, @Named("number") final int number) {
}
 
开发者ID:raqet,项目名称:acquisition-server,代码行数:9,代码来源:RaqetSteps.java


示例11: checkIsAlive

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Then("$livingName is alive")
@Alias("$livingName is still alive")
public void checkIsAlive(String livingName) {}
 
开发者ID:wemanity,项目名称:Acceptance-Tests-with-JBehave,代码行数:4,代码来源:LivingCreatureSteps.java


示例12: checkIsDied

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Then("$livingName is dead")
@Alias("$livingName is suddenly dead")
public void checkIsDied(String livingName) {}
 
开发者ID:wemanity,项目名称:Acceptance-Tests-with-JBehave,代码行数:4,代码来源:LivingCreatureSteps.java


示例13: associateHorcrux

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Given("$personName has $quantity horcruxes")
@Alias("$personName has $quantity horcrux")
public void associateHorcrux(String personName, int quantity) {}
 
开发者ID:wemanity,项目名称:Acceptance-Tests-with-JBehave,代码行数:4,代码来源:DarkMagicSteps.java


示例14: thenExpectedResults

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Then("j'obtiens les résultats attendus")
@Alias("j'obtiens les résultats escomptés")
public void thenExpectedResults() {
    LOGGER.info("<<<<<< Then >>>>>>");
}
 
开发者ID:wemanity,项目名称:Acceptance-Tests-with-JBehave,代码行数:6,代码来源:NemoSteps.java


示例15: resultTypeIs

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Then("result has $number seats")
@Alias("result has $number seat")
public void resultTypeIs(int number) {
	assertEquals(number, result.getNumberOfSeats());
}
 
开发者ID:pau-minoves,项目名称:jseats,代码行数:6,代码来源:Steps.java


示例16: resultNumberOfSeatsForCandidate

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Then("result has $number seats for $candidate")
@Alias("result has $number seat for $candidate")
public void resultNumberOfSeatsForCandidate(int number, String candidate) {
	assertEquals(number, result.getNumberOfSeatsForCandidate(candidate));
}
 
开发者ID:pau-minoves,项目名称:jseats,代码行数:6,代码来源:Steps.java


示例17: theStockExchange

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Given("the stock exchange %stockExchange")
@Alias("the stock exchange <stockExchange>")    
public void theStockExchange(@Named("stockExchange") String stockExchange) {
    this.stockExchange = stockExchange;        
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:6,代码来源:TraderSteps.java


示例18: theAssetClass

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Given("the asset class %assetClass")
@Alias("the asset class <assetClass>")    
public void theAssetClass(@Named("assetClass") String assetClass) {
    this.assetClass = assetClass;
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:6,代码来源:TraderSteps.java


示例19: aStock

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Given("a stock of symbol %symbol and a threshold of %threshold")
@Alias("a stock of <symbol> and a <threshold>") // alias used with examples table
public void aStock(@Named("symbol") String symbol, @Named("threshold") double threshold) {
    stock = service.newStock(symbol, threshold);
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:6,代码来源:TraderSteps.java


示例20: theAlertStatusIs

import org.jbehave.core.annotations.Alias; //导入依赖的package包/类
@Then("the alert status is %status")
@Alias("the trader is alerted with <status>") // alias used with examples table
public void theAlertStatusIs(@Named("status") String status) {
    assertThat(stock.getStatus().name(), equalTo(status));
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:6,代码来源:TraderSteps.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java KernelExtensionFactory类代码示例发布时间:2022-05-23
下一篇:
Java TreeItemPropertyValueFactory类代码示例发布时间: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