- Revision
- 1208
- Author
- mauro
- Date
- 2009-08-27 11:21:18 -0500 (Thu, 27 Aug 2009)
Log Message
Added use of @Alias in example scenario
Modified Paths
- trunk/core/examples/gameoflife/pom.xml
- trunk/core/examples/gameoflife/scenarios/pom.xml
- trunk/core/examples/noughtsandcrosses/pom.xml
- trunk/core/examples/noughtsandcrosses/scenarios/pom.xml
- trunk/core/examples/pom.xml
- trunk/core/examples/trader/pom.xml
- trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/TraderSteps.java
- trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/status_alert_can_be_activated.scenario
- trunk/core/examples/trader-test-scope/pom.xml
Diff
Modified: trunk/core/examples/gameoflife/pom.xml (1207 => 1208)
--- trunk/core/examples/gameoflife/pom.xml 2009-08-26 21:19:58 UTC (rev 1207) +++ trunk/core/examples/gameoflife/pom.xml 2009-08-27 16:21:18 UTC (rev 1208) @@ -4,7 +4,7 @@ <parent> <groupId>org.jbehave</groupId> <artifactId>jbehave-examples</artifactId> - <version>2.2-SNAPSHOT</version> + <version>2.3-SNAPSHOT</version> </parent> <artifactId>jbehave-gameoflife-example</artifactId> <name>JBehave Game of Life Example</name>
Modified: trunk/core/examples/gameoflife/scenarios/pom.xml (1207 => 1208)
--- trunk/core/examples/gameoflife/scenarios/pom.xml 2009-08-26 21:19:58 UTC (rev 1207) +++ trunk/core/examples/gameoflife/scenarios/pom.xml 2009-08-27 16:21:18 UTC (rev 1208) @@ -4,7 +4,7 @@ <parent> <groupId>org.jbehave</groupId> <artifactId>jbehave-examples</artifactId> - <version>2.2-SNAPSHOT</version> + <version>2.3-SNAPSHOT</version> </parent> <artifactId>jbehave-gameoflife-example-scenarios</artifactId> <name>JBehave Game of Life Example Scenarios</name>
Modified: trunk/core/examples/noughtsandcrosses/pom.xml (1207 => 1208)
--- trunk/core/examples/noughtsandcrosses/pom.xml 2009-08-26 21:19:58 UTC (rev 1207) +++ trunk/core/examples/noughtsandcrosses/pom.xml 2009-08-27 16:21:18 UTC (rev 1208) @@ -4,7 +4,7 @@ <parent> <groupId>org.jbehave</groupId> <artifactId>jbehave-examples</artifactId> - <version>2.2-SNAPSHOT</version> + <version>2.3-SNAPSHOT</version> </parent> <artifactId>jbehave-noughtsandcrosses-example</artifactId> <name>JBehave Noughts And Crosses Example</name>
Modified: trunk/core/examples/noughtsandcrosses/scenarios/pom.xml (1207 => 1208)
--- trunk/core/examples/noughtsandcrosses/scenarios/pom.xml 2009-08-26 21:19:58 UTC (rev 1207) +++ trunk/core/examples/noughtsandcrosses/scenarios/pom.xml 2009-08-27 16:21:18 UTC (rev 1208) @@ -4,7 +4,7 @@ <parent> <groupId>org.jbehave</groupId> <artifactId>jbehave-examples</artifactId> - <version>2.2-SNAPSHOT</version> + <version>2.3-SNAPSHOT</version> </parent> <artifactId>jbehave-noughtsandcrosses-example-scenarios</artifactId> <name>JBehave Noughts And Crosses Example Scenarios</name>
Modified: trunk/core/examples/pom.xml (1207 => 1208)
--- trunk/core/examples/pom.xml 2009-08-26 21:19:58 UTC (rev 1207) +++ trunk/core/examples/pom.xml 2009-08-27 16:21:18 UTC (rev 1208) @@ -4,7 +4,7 @@ <parent> <groupId>org.jbehave</groupId> <artifactId>jbehave</artifactId> - <version>2.2-SNAPSHOT</version> + <version>2.3-SNAPSHOT</version> </parent> <artifactId>jbehave-examples</artifactId> <packaging>pom</packaging>
Modified: trunk/core/examples/trader/pom.xml (1207 => 1208)
--- trunk/core/examples/trader/pom.xml 2009-08-26 21:19:58 UTC (rev 1207) +++ trunk/core/examples/trader/pom.xml 2009-08-27 16:21:18 UTC (rev 1208) @@ -4,7 +4,7 @@ <parent> <groupId>org.jbehave</groupId> <artifactId>jbehave-examples</artifactId> - <version>2.2-SNAPSHOT</version> + <version>2.3-SNAPSHOT</version> </parent> <artifactId>jbehave-trader-example</artifactId> <name>JBehave Trader Example</name>
Modified: trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/TraderSteps.java (1207 => 1208)
--- trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/TraderSteps.java 2009-08-26 21:19:58 UTC (rev 1207) +++ trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/TraderSteps.java 2009-08-27 16:21:18 UTC (rev 1208) @@ -10,6 +10,7 @@ import org.jbehave.examples.trader.model.Stock; import org.jbehave.examples.trader.model.Trader; import org.jbehave.examples.trader.persistence.TraderPersister; +import org.jbehave.scenario.annotations.Alias; import org.jbehave.scenario.annotations.Aliases; import org.jbehave.scenario.annotations.Given; import org.jbehave.scenario.annotations.Then; @@ -54,6 +55,7 @@ } @Then("the alert status should be %status") + @Alias("the alert status is %status") public void theAlertStatusShouldBe(String status) { ensureThat(stock.getStatus().name(), equalTo(status)); }
Modified: trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/status_alert_can_be_activated.scenario (1207 => 1208)
--- trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/status_alert_can_be_activated.scenario 2009-08-26 21:19:58 UTC (rev 1207) +++ trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/status_alert_can_be_activated.scenario 2009-08-27 16:21:18 UTC (rev 1208) @@ -2,4 +2,4 @@ When the stock is traded at 5.0 Then the alert status should be OFF When the stock is sold at 11.0 -Then the alert status should be ON +Then the alert status is ON
Modified: trunk/core/examples/trader-test-scope/pom.xml (1207 => 1208)
--- trunk/core/examples/trader-test-scope/pom.xml 2009-08-26 21:19:58 UTC (rev 1207) +++ trunk/core/examples/trader-test-scope/pom.xml 2009-08-27 16:21:18 UTC (rev 1208) @@ -4,7 +4,7 @@ <parent> <groupId>org.jbehave</groupId> <artifactId>jbehave-examples</artifactId> - <version>2.2-SNAPSHOT</version> + <version>2.3-SNAPSHOT</version> </parent> <artifactId>jbehave-trader-test-scope-example</artifactId> <name>JBehave Trader Test Scope Example</name>
To unsubscribe from this list please visit:
