Title: [1485] trunk/core/examples/trader: JBEHAVE-204: Added given_non_successful.scenario to allow verification of behaviour.

Diff

Modified: trunk/core/examples/trader/pom.xml (1484 => 1485)

--- trunk/core/examples/trader/pom.xml	2009-12-28 15:33:36 UTC (rev 1484)
+++ trunk/core/examples/trader/pom.xml	2009-12-28 15:36:01 UTC (rev 1485)
@@ -79,7 +79,7 @@
                 <scenarioInclude>**/scenarios/*.java</scenarioInclude>
               </scenarioIncludes>
               <scenarioExcludes>
-                <scenarioExclude>**/scenarios/NonSuccessful.java</scenarioExclude>
+                <scenarioExclude>**/scenarios/*NonSuccessful.java</scenarioExclude>
                 <scenarioExclude>**/i18n/scenarios/*.java</scenarioExclude>
               </scenarioExcludes>
               <skip>false</skip>

Added: trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/GivenNonSuccessful.java (0 => 1485)

--- trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/GivenNonSuccessful.java	                        (rev 0)
+++ trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/GivenNonSuccessful.java	2009-12-28 15:36:01 UTC (rev 1485)
@@ -0,0 +1,11 @@
+package org.jbehave.examples.trader.scenarios;
+
+import org.jbehave.examples.trader.TraderScenario;
+
+public class GivenNonSuccessful extends TraderScenario {
+
+    public GivenNonSuccessful() {
+        super(GivenNonSuccessful.class);
+    }
+
+}
\ No newline at end of file

Added: trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/given_non_successful.scenario (0 => 1485)

--- trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/given_non_successful.scenario	                        (rev 0)
+++ trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/given_non_successful.scenario	2009-12-28 15:36:01 UTC (rev 1485)
@@ -0,0 +1,13 @@
+Scenario: A scenario that depends on a non successful one
+
+GivenScenarios: org/jbehave/examples/trader/scenarios/non_successful.scenario
+
+Given the traders:
+|name|rank|
+|Larry|Stooge 3|
+|Moe|Stooge 1|
+|Curly|Stooge 2|
+When a wildcard search ".*e" is executed
+Then the traders returned are:
+|name|rank|
+|Moe|Stooge 1|

Modified: trunk/core/examples/trader-test-scope/pom.xml (1484 => 1485)

--- trunk/core/examples/trader-test-scope/pom.xml	2009-12-28 15:33:36 UTC (rev 1484)
+++ trunk/core/examples/trader-test-scope/pom.xml	2009-12-28 15:36:01 UTC (rev 1485)
@@ -27,7 +27,7 @@
               </scenarioIncludes>
               <scenarioExcludes>
                 <scenarioExclude>**/i18n/scenarios/*.java</scenarioExclude>
-                <scenarioExclude>**/NonSuccessful.java</scenarioExclude>
+                <scenarioExclude>**/*NonSuccessful.java</scenarioExclude>
               </scenarioExcludes>
               <skip>false</skip>
               <scope>test</scope>


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to