Hier ein Video mit dem Auszug aus der Software Architektur Kata bei der Softwerkskammer in Lübeck.
Hierbei geht es darum Software Architektur Katas in Timeboxen emergent zu entwefen
with cucumber java 8 function you have a nice way to use anonymous function for your feature files which makes the old annotations and underscore naming convention obsolete Example code for the ultimate Bowling game .Feature from the Bowling game Kata Scenario: Calculating Game Score for utimate Bowling game Given I play a 10 rounds Bowling game When I bowl a game X X X X X X X X XX X Then the game result will be 300 points Scenario: Calculating Game Score for the worst Bowling game Given I play a 10 rounds Bowling game When I bowl a game 00 00 00 00 00 00 00 00 00 00 Then the game result will be 0 points package bowling; import cucumber.api.java8.En; import org.junit.Assert; public class GameStepDefs implements En { private Game game; public GameStepDefs() { Given("^I play a (\\d+) rounds Bowling game$", (Integer arg0) -> { this.game = new Game(10); }); When("^I bowl a game ([0-9, X//]+
Kommentare
Kommentar veröffentlichen