Package com.bddinaction.flyinghigh.jbehave.model

Examples of com.bddinaction.flyinghigh.jbehave.model.DestinationDeal


    private DestinationDeal destinationDealFrom(WebElement destinationEntry) {
        String destinationCity = $(destinationEntry).findBy(".destination-title").getText();
        String priceValue = $(destinationEntry).findBy(".destination-price").getText();
        int price = Integer.parseInt(priceValue.substring(1));
        return new DestinationDeal(destinationCity, price);
    }
View Full Code Here


        assertThat(homePage.getFeaturedDestinations().size()).isEqualTo(featuredCount);
    }

    @Then("the featured destinations should include $expectedDestination costing $price")
    public void featuredDestinationsShouldInclude(String expectedDestination, int price) {
        DestinationDeal expectedDeal = new DestinationDeal(expectedDestination, price);
        assertThat(homePage.getFeaturedDestinations()).contains(expectedDeal);
    }
View Full Code Here

TOP

Related Classes of com.bddinaction.flyinghigh.jbehave.model.DestinationDeal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.