- Revision
- 1276
- Author
- mauro
- Date
- 2009-09-25 11:47:26 -0500 (Fri, 25 Sep 2009)
Log Message
Added example of changing resource finder root directory.
Modified Paths
- trunk/web/examples/trader-web/src/main/java/org/jbehave/web/examples/trader/scenarios/StockExchangeSteps.java
- trunk/web/examples/trader-web/src/main/resources/status_alert_can_be_activated.scenario
Diff
Modified: trunk/web/examples/trader-web/src/main/java/org/jbehave/web/examples/trader/scenarios/StockExchangeSteps.java (1275 => 1276)
--- trunk/web/examples/trader-web/src/main/java/org/jbehave/web/examples/trader/scenarios/StockExchangeSteps.java 2009-09-25 16:38:23 UTC (rev 1275) +++ trunk/web/examples/trader-web/src/main/java/org/jbehave/web/examples/trader/scenarios/StockExchangeSteps.java 2009-09-25 16:47:26 UTC (rev 1276) @@ -27,6 +27,11 @@ } + @Given("a resource root directory $rootDirectory") + public void aRootDirectory(String rootDirectory){ + this.resourceFinder.useRootDirectory(rootDirectory); + } + @Given("a stock exchange $stockExchange") public void aStockExchange(String stockExchange){ this.stockExchange = stockExchange;
Modified: trunk/web/examples/trader-web/src/main/resources/status_alert_can_be_activated.scenario (1275 => 1276)
--- trunk/web/examples/trader-web/src/main/resources/status_alert_can_be_activated.scenario 2009-09-25 16:38:23 UTC (rev 1275) +++ trunk/web/examples/trader-web/src/main/resources/status_alert_can_be_activated.scenario 2009-09-25 16:47:26 UTC (rev 1276) @@ -1,6 +1,13 @@ +Scenario: + Given a stock exchange EXCH1 When the stock exchange is opened Then the stock exchanges opened are as contained in data/STOCK-EXCHANGES.txt +Given a resource root directory classpath:org/jbehave/web/examples/trader/scenarios/data +Then the stock exchanges opened are as contained in STOCK-EXCHANGES.txt + +Scenario: + Given a stock of prices 0.5,1.0 and a threshold of 10.0 When the stock is traded at 5.0 Then the alert status should be OFF
To unsubscribe from this list please visit:
