當前位置: 首頁>>代碼示例>>Java>>正文


Java PendingException類代碼示例

本文整理匯總了Java中cucumber.api.PendingException的典型用法代碼示例。如果您正苦於以下問題:Java PendingException類的具體用法?Java PendingException怎麽用?Java PendingException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PendingException類屬於cucumber.api包,在下文中一共展示了PendingException類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: handlePickleStep

import cucumber.api.PendingException; //導入依賴的package包/類
private void handlePickleStep(final TestStepFinished event) {
    final StatusDetails statusDetails;
    if (event.result.getStatus() == Result.Type.UNDEFINED) {
        statusDetails =
                ResultsUtils.getStatusDetails(new PendingException("TODO: implement me"))
                        .orElse(new StatusDetails());
        lifecycle.updateTestCase(getTestCaseUuid(currentTestCase), scenarioResult ->
                scenarioResult
                        .withStatus(translateTestCaseStatus(event.result))
                        .withStatusDetails(statusDetails));
    } else {
        statusDetails =
                ResultsUtils.getStatusDetails(event.result.getError())
                        .orElse(new StatusDetails());
    }

    final TagParser tagParser = new TagParser(currentFeature, currentTestCase);
    statusDetails
            .withFlaky(tagParser.isFlaky())
            .withMuted(tagParser.isMuted())
            .withKnown(tagParser.isKnown());

    lifecycle.updateStep(getStepUuid(event.testStep), stepResult ->
            stepResult.withStatus(translateTestCaseStatus(event.result)));
    lifecycle.stopStep(getStepUuid(event.testStep));
}
 
開發者ID:allure-framework,項目名稱:allure-java,代碼行數:27,代碼來源:AllureCucumber2Jvm.java

示例2: i_look_at_the_detail_for_the_property

import cucumber.api.PendingException; //導入依賴的package包/類
@When("^I look at the detail for the property \"(.*?)\"$")
public void i_look_at_the_detail_for_the_property(String property) throws Throwable {
	throw new PendingException("Can't check contents of JSPs without a servlet container to execute them.");
	//log.info("Want to select {}", "#"+property+"_transformers");
	//propertyTransformers = html.select("#"+property+"_transformers").first();
	//propertyMatcher = html.select("#"+property+"_matcher").first();
}
 
開發者ID:RBGKew,項目名稱:Reconciliation-and-Matching-Framework,代碼行數:8,代碼來源:WebInterfaceStepdefs.java

示例3: the_transformers_are

import cucumber.api.PendingException; //導入依賴的package包/類
@Then("^the transformers are$")
public void the_transformers_are(List<Map<String,String>> values) throws Throwable {
	//for (Element transformer : propertyTransformers.children()) {
	//	transformer.select("span").first().text().equals("Epithet Transformer");
	//	transformer.select("span").first().attr("title").equals("org.kew.stuff");
	//	transformer.select("span").get(1).text().equals("replacement: \"\"");
	//}
	throw new PendingException();
}
 
開發者ID:RBGKew,項目名稱:Reconciliation-and-Matching-Framework,代碼行數:10,代碼來源:WebInterfaceStepdefs.java

示例4: i_make_the_reconciliation_suggest_flyout_request_with_id

import cucumber.api.PendingException; //導入依賴的package包/類
@When("^I make the reconciliation suggest flyout request with id \"(.*?)\"$")
public void i_make_the_reconciliation_suggest_flyout_request_with_id(String id) throws Throwable {
	throw new PendingException("Not bothering to add WireMock or similar to test something so simple.");
	//result = mockMvc.perform(get("/reconcile/generalTest/flyout/"+id).accept(JSON_UTF8))
	//		.andExpect(status().isOk())
	//		.andExpect(content().contentType(JSON_UTF8_S))
	//		.andReturn();

	//responseJson = result.getResponse().getContentAsString();
	//log.debug("Response as string was {}", responseJson);
}
 
開發者ID:RBGKew,項目名稱:Reconciliation-and-Matching-Framework,代碼行數:12,代碼來源:GeneralReconciliationServiceStepdefs.java

示例5: I_am_logged_in_as_a_x_user

import cucumber.api.PendingException; //導入依賴的package包/類
@Given("^I am logged in as a \"(.*)\" user$")
public void I_am_logged_in_as_a_x_user(String userType) {
	GenericUser genericUser = getReferenceService().getUserForUserReference(userType);
	//TODO: login using the credentials of this referenced user

	throw new PendingException("Implement this step definition");
}
 
開發者ID:gfk-ba,項目名稱:senbot,代碼行數:8,代碼來源:MySeleniumStepDefinitions.java

示例6: as

import cucumber.api.PendingException; //導入依賴的package包/類
@Given("^I provide parameter \"([^\"]*)\" as (\\d+)$")
public void I_provide_parameter_as(String name, Long value) throws Throwable {
    if(name.equalsIgnoreCase("id"))
        this.id = value;
    else
        throw new PendingException();
}
 
開發者ID:abdielou,項目名稱:cucumber-rest,代碼行數:8,代碼來源:StepDefs.java

示例7: than

import cucumber.api.PendingException; //導入依賴的package包/類
@Given("^There is an empty hex on a level greater than (\\d+)$")
public void there_is_an_empty_hex_on_a_level_greater_than(int arg1) throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
開發者ID:jlhbaseball15,項目名稱:TigerIsland,代碼行數:6,代碼來源:SettlementFoundationStepDefs.java

示例8: there_are_two_or_three_tiles_of_the_same_level

import cucumber.api.PendingException; //導入依賴的package包/類
@Given("^there are two or three tiles of the same level$")
public void there_are_two_or_three_tiles_of_the_same_level() throws Throwable {
    // Write code here that turns the phrase above into concrete actions

    throw new PendingException();
}
 
開發者ID:jlhbaseball15,項目名稱:TigerIsland,代碼行數:7,代碼來源:GridStepDefs.java

示例9: the_Volcano_hex_of_one_tile_is_adjacent_to_the_other_tile_s

import cucumber.api.PendingException; //導入依賴的package包/類
@Given("^the Volcano hex of one tile is adjacent to the other tile\\(s\\)$")
public void the_Volcano_hex_of_one_tile_is_adjacent_to_the_other_tile_s() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
開發者ID:jlhbaseball15,項目名稱:TigerIsland,代碼行數:6,代碼來源:GridStepDefs.java

示例10: there_are_Meeples_on_a_Terrain_hex_adjacent_to_the_other_tile_s

import cucumber.api.PendingException; //導入依賴的package包/類
@Given("^there are Meeples on a Terrain hex adjacent to the other tile\\(s\\)$")
public void there_are_Meeples_on_a_Terrain_hex_adjacent_to_the_other_tile_s() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
開發者ID:jlhbaseball15,項目名稱:TigerIsland,代碼行數:6,代碼來源:GridStepDefs.java

示例11: the_Player_tries_to_place_a_new_Tile_on_top_of_the_other_tiles_with_a_valid_placement

import cucumber.api.PendingException; //導入依賴的package包/類
@When("^the Player tries to place a new Tile on top of the other tiles with a valid placement,$")
public void the_Player_tries_to_place_a_new_Tile_on_top_of_the_other_tiles_with_a_valid_placement() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
開發者ID:jlhbaseball15,項目名稱:TigerIsland,代碼行數:6,代碼來源:GridStepDefs.java

示例12: the_tile_adjacent_hexes_are_empty

import cucumber.api.PendingException; //導入依賴的package包/類
@Given("^the tile adjacent hexes are empty$")
public void the_tile_adjacent_hexes_are_empty() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
開發者ID:jlhbaseball15,項目名稱:TigerIsland,代碼行數:6,代碼來源:GridStepDefs.java

示例13: the_Tile_is_added_to_the_board

import cucumber.api.PendingException; //導入依賴的package包/類
@Then("^the Tile is added to the board$")
public void the_Tile_is_added_to_the_board() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
開發者ID:jlhbaseball15,項目名稱:TigerIsland,代碼行數:6,代碼來源:GridStepDefs.java

示例14: there_is_a_tile

import cucumber.api.PendingException; //導入依賴的package包/類
@Given("^There is a tile$")
public void there_is_a_tile() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
開發者ID:jlhbaseball15,項目名稱:TigerIsland,代碼行數:6,代碼來源:GridStepDefs.java

示例15: the_Player_tries_to_place_a_new_tile_directly_above_the_original_tile

import cucumber.api.PendingException; //導入依賴的package包/類
@When("^The Player tries to place a new tile directly above the original tile$")
public void the_Player_tries_to_place_a_new_tile_directly_above_the_original_tile() throws Throwable {
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException();
}
 
開發者ID:jlhbaseball15,項目名稱:TigerIsland,代碼行數:6,代碼來源:GridStepDefs.java


注:本文中的cucumber.api.PendingException類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。