Skip to content

Commit

Permalink
Important stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Oct 8, 2014
1 parent a719f51 commit 721ef1f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
public class EarningPoints extends ThucydidesJUnitStories {

public EarningPoints() {
this.findStoriesIn("stories/earning_points");
findStoriesIn("stories/earning_points");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
public class ManagingAirports extends ThucydidesJUnitStories {

public ManagingAirports() {
this.findStoriesIn("stories/managing_airports");
findStoriesIn("stories/managing_airports");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
public class Partners extends ThucydidesJUnitStories {

public Partners() {
this.findStoriesIn("stories/partners");
findStoriesIn("stories/partners");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
public class SpendingPoints extends ThucydidesJUnitStories {

public SpendingPoints() {
this.findStoriesIn("stories/spending_points");
findStoriesIn("stories/spending_points");
}
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
package flyinghigh.services.acceptancetests.stepdefs;

import flyinghigh.services.acceptancetests.domain.Airport;
import flyinghigh.services.acceptancetests.pages.HomePage;
import flyinghigh.services.acceptancetests.pages.MyAccountPage;
import flyinghigh.services.acceptancetests.rest.RestClient;
import flyinghigh.services.acceptancetests.steps.AirportClientSteps;
import flyinghigh.services.acceptancetests.steps.MyAccountUISteps;
import net.thucydides.core.annotations.Steps;
import org.jbehave.core.annotations.Given;
import org.jbehave.core.annotations.Then;
import org.jbehave.core.annotations.When;

import java.util.List;

import static org.fest.assertions.api.Assertions.assertThat;


Expand All @@ -33,15 +26,13 @@ public void openMyAccountPage() {

@When("I calculate the points needed to go from <departure> to <destination>")
public void calculatePointsNeeded(String departure, String destination) {
// TODO
// calculatedPoints = myAccountSteps.calculatePointsNeededBetween(departure,
// destination);
calculatedPoints = myAccountSteps.calculatePointsNeededBetween(departure,
destination);
}

@Then("I should see <requiredPoints> points")
public void shouldSeeRequiredPoints(int requiredPoints) {
// TODO
// assertThat(calculatedPoints).isEqualTo(requiredPoints);
assertThat(calculatedPoints).isEqualTo(requiredPoints);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ public void setDepartureAndDestination(String departure, String destination) {
}
@When("I calculate the number of required points")
public void calculateRequiredPoints() {
// TODO
// calculatedPoints = restClient.calculateRequiredPoints(departure, destination);
calculatedPoints = restClient.calculateRequiredPoints(departure, destination);
}

@Then("I should obtain <requiredPoints>")
public void checkCalculatedPoints(int requiredPoints) {
// TODO
// assertThat(calculatedPoints).isEqualTo(requiredPoints);
assertThat(calculatedPoints).isEqualTo(requiredPoints);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
@RepositoryRestResource(collectionResourceRel = "accounts", path = "accounts")
public interface AccountRepository extends MongoRepository<FrequentFlyerMember, String> {
FrequentFlyerMember findByAccountNumber(@Param("number") String number);
}
FrequentFlyerMember findByFirstNameAndLastName(@Param("firstName") String firstName, @Param("lasttName") String lastName);}

0 comments on commit 721ef1f

Please sign in to comment.