Title: [1510] sandbox/spikes/di-spike/examples: merges from trunk

Diff

Modified: sandbox/spikes/di-spike/distribution/src/site/content/release-notes.html (1509 => 1510)

--- sandbox/spikes/di-spike/distribution/src/site/content/release-notes.html	2010-01-09 16:43:23 UTC (rev 1509)
+++ sandbox/spikes/di-spike/distribution/src/site/content/release-notes.html	2010-01-10 01:18:25 UTC (rev 1510)
@@ -5,6 +5,164 @@
 </head>
 <body>
 
+<h1>JBehave Core - Version 2.4 (Jan xx, 2010)</h1>
+        
+<h2>        Bug
+</h2>
+<ul>
+<li>[<a href="" -         Candidate step does not match AND steps
+</li>
+<li>[<a href="" -         StringListConverter converts an empty String to a one element List instead of an empty List
+</li>
+<li>[<a href="" -         Starting words are not updated when keywords are overridden in steps configuration
+</li>
+<li>[<a href="" -         Maven runner documentation has incorrect capitalization (should be camel case)
+</li>
+<li>[<a href="" -         0.0 gets parsed as a Long
+</li>
+<li>[<a href="" -         Double.NaN should be parseable into a double
+</li>
+<li>[<a href="" -         Multiline scenario title is parsed as empty
+</li>
+</ul>
+    
+<h2>        Improvement
+</h2>
+<ul>
+<li>[<a href="" -         Allow scenarios to run in batch mode
+</li>
+<li>[<a href="" -         Add support for BigDecimal and BigInteger parameters
+</li>
+<li>[<a href="" -         Candidate steps should be aware of the method annotation type when matching textual steps
+</li>
+<li>[<a href="" -         Allow ScenarioClassLoader to instantiate scenarios using default constructor
+</li>
+<li>[<a href="" -         Allow class loader injection to be optional in scenario classes when running in command line
+</li>
+<li>[<a href="" -         Scenario runner should report before and after story only once when running given scenarios
+</li>
+<li>[<a href="" -         Add ParameterConverter for ExamplesTable
+</li>
+<li>[<a href="" -         Report embedded status in before/after story events 
+</li>
+<li>[<a href="" -         Allow a step to be reused between scenarios with and without example tables
+</li>
+<li>[<a href="" -         Allow configuration to be overridden
+</li>
+<li>[<a href="" -         Create standard human and machine-readable reports
+</li>
+<li>[<a href="" -         Add/rename examples events in ScenarioReporter 
+</li>
+<li>[<a href="" -         PatternScenarioParser should depend on KeyWords and not Configuration
+</li>
+<li>[<a href="" -         Allow CandidateSteps methods to be defined in POJOs
+</li>
+</ul>
+    
+<h2>        New Feature
+</h2>
+<ul>
+<li>[<a href="" -         HTML-based scenario reporting
+</li>
+<li>[<a href="" -         Allow for multiple aliases for a given step
+</li>
+<li>[<a href="" -         Statistics ScenarioReporter
+</li>
+<li>[<a href="" -         XML Scenario Reporter
+</li>
+<li>[<a href="" -         ScenarioReporterBuilder
+</li>
+</ul>
+    
+<h2>        Task
+</h2>
+<ul>
+<li>[<a href="" -         Improve documentation of candidate steps and aliases in reference guide
+</li>
+<li>[<a href="" -         StepsBehaviour tests fail with  JDK 1.5
+</li>
+</ul>
+        
+<h1>JBehave Core - Version 2.3.2 (Nov 3, 2009)</h1>
+        
+<h2>        Bug
+</h2>
+<ul>
+<li>[<a href="" -         Candidate step does not match AND steps
+</li>
+</ul>
+    
+<h2>        Improvement
+</h2>
+<ul>
+<li>[<a href="" -         Allow ScenarioClassLoader to instantiate scenarios using default constructor
+</li>
+<li>[<a href="" -         Allow class loader injection to be optional in scenario classes when running in command line
+</li>
+</ul>
+                
+
+<h1>JBehave Core - Version 2.3.1 (Oct 31, 2009)</h1>
+        
+<h2>        Bug
+</h2>
+<ul>
+<li>[<a href="" -         I18n keywords resource bundle not found by Ant task
+</li>
+</ul>
+    
+<h2>        Improvement
+</h2>
+<ul>
+<li>[<a href="" -         Add support for BigDecimal and BigInteger parameters
+</li>
+<li>[<a href="" -         Candidate steps should be aware of the method annotation type when matching textual steps
+</li>
+</ul>
+        
+<h2>        Task
+</h2>
+<ul>
+<li>[<a href="" -         Improve documentation of candidate steps and aliases in reference guide
+</li>
+</ul>
+        
+
+<h1>JBehave Core - Version 2.3 (Oct 10, 2009)</h1>
+            
+<h2>        Improvement
+</h2>
+<ul>
+<li>[<a href="" -         I18N Keywords
+</li>
+<li>[<a href="" -         Support annotated named parameters in Steps methods
+</li>
+<li>[<a href="" -         Improve documentation 
+</li>
+<li>[<a href="" -         Allow output patterns to be overridden and localised in PrintStreamScenarioReporter
+</li>
+</ul>
+    
+<h2>        New Feature
+</h2>
+<ul>
+<li>[<a href="" -         GivenScenarios
+</li>
+<li>[<a href="" -         Table examples include
+</li>
+<li>[<a href="" -         Support named parameters in Steps methods via Paranamer 
+</li>
+</ul>
+    
+<h2>        Task
+</h2>
+<ul>
+<li>[<a href="" -         Provide BNF for BDD grammar
+</li>
+<li>[<a href="" -         Upgrade to JUnit 4.5
+</li>
+</ul>
+        
 <h1>JBehave Core - Version 2.2.1 (Aug 25, 2009)</h1>
             
 <h2>        Improvement

Modified: sandbox/spikes/di-spike/examples/pom.xml (1509 => 1510)

--- sandbox/spikes/di-spike/examples/pom.xml	2010-01-09 16:43:23 UTC (rev 1509)
+++ sandbox/spikes/di-spike/examples/pom.xml	2010-01-10 01:18:25 UTC (rev 1510)
@@ -23,12 +23,12 @@
     <dependency>
       <groupId>org.jbehave</groupId>
       <artifactId>jbehave-core</artifactId>
-      <version>${pom.version}</version>
+      <version>${jbehave.version}</version>
     </dependency>
     <dependency>
       <groupId>org.jbehave</groupId>
       <artifactId>jbehave-ant</artifactId>
-      <version>${pom.version}</version>
+      <version>${jbehave.version}</version>
     </dependency>
   </dependencies>
 
@@ -44,7 +44,7 @@
         <plugin>
           <groupId>org.jbehave</groupId>
           <artifactId>jbehave-maven-plugin</artifactId>
-          <version>${pom.version}</version>
+          <version>${jbehave.version}</version>
         </plugin>
       </plugins>
     </pluginManagement>
@@ -75,5 +75,6 @@
   </build>
   <properties>
     <scenario.includes>**/scenario/*.java</scenario.includes>
+    <jbehave.version>${pom.version}</jbehave.version>
   </properties>
 </project>

Modified: sandbox/spikes/di-spike/examples/trader/pom.xml (1509 => 1510)

--- sandbox/spikes/di-spike/examples/trader/pom.xml	2010-01-09 16:43:23 UTC (rev 1509)
+++ sandbox/spikes/di-spike/examples/trader/pom.xml	2010-01-10 01:18:25 UTC (rev 1510)
@@ -57,7 +57,7 @@
                 <artifactItem>
                   <groupId>org.jbehave</groupId>
                   <artifactId>jbehave-core</artifactId>
-                  <version>${pom.version}</version>
+                  <version>${jbehave.version}</version>
                   <outputDirectory>${project.build.directory}/jbehave-reports/rendered</outputDirectory>
                   <includes>**\/*.css,**\/*.ftl,**\/*.js</includes>
                 </artifactItem>
@@ -69,7 +69,6 @@
       <plugin>
         <groupId>org.jbehave</groupId>
         <artifactId>jbehave-maven-plugin</artifactId>
-        <version>${pom.version}</version>
         <executions>
           <execution>
             <id>run-scenarios-found</id>
@@ -217,7 +216,6 @@
       <plugin>
         <groupId>org.jbehave</groupId>
         <artifactId>jbehave-maven-plugin</artifactId>
-        <version>${pom.version}</version>
         <configuration>
         </configuration>
         <reportSets>

Copied: sandbox/spikes/di-spike/examples/trader/src/main/java/org/jbehave/examples/trader/OrderMatchingSteps.java (from rev 1509, trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/OrderMatchingSteps.java) (0 => 1510)

--- sandbox/spikes/di-spike/examples/trader/src/main/java/org/jbehave/examples/trader/OrderMatchingSteps.java	                        (rev 0)
+++ sandbox/spikes/di-spike/examples/trader/src/main/java/org/jbehave/examples/trader/OrderMatchingSteps.java	2010-01-10 01:18:25 UTC (rev 1510)
@@ -0,0 +1,27 @@
+package org.jbehave.examples.trader;
+
+import junit.framework.Assert;
+
+import org.jbehave.scenario.annotations.Given;
+import org.jbehave.scenario.annotations.Then;
+
+public class OrderMatchingSteps {
+
+    private String param;
+
+    @Given("a step that has $param")
+    public void has(String param){
+        this.param = param;
+    }
+    
+    @Given("a step that has exactly one $param")
+    public void hasExactlyOne(String param){
+        this.param = param;
+    }
+
+    @Then("the parameter value is \"$param\"")
+    public void theParamValue(String param){
+        Assert.assertEquals(this.param, param);
+    }
+
+}

Copied: sandbox/spikes/di-spike/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/OrderMatching.java (from rev 1509, trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/OrderMatching.java) (0 => 1510)

--- sandbox/spikes/di-spike/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/OrderMatching.java	                        (rev 0)
+++ sandbox/spikes/di-spike/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/OrderMatching.java	2010-01-10 01:18:25 UTC (rev 1510)
@@ -0,0 +1,31 @@
+package org.jbehave.examples.trader.scenarios;
+
+import org.jbehave.examples.trader.OrderMatchingSteps;
+import org.jbehave.scenario.JUnitScenario;
+import org.jbehave.scenario.MostUsefulConfiguration;
+import org.jbehave.scenario.parser.ClasspathScenarioDefiner;
+import org.jbehave.scenario.parser.PatternScenarioParser;
+import org.jbehave.scenario.parser.PrefixCapturingPatternBuilder;
+import org.jbehave.scenario.parser.ScenarioDefiner;
+import org.jbehave.scenario.parser.UnderscoredCamelCaseResolver;
+import org.jbehave.scenario.steps.StepsConfiguration;
+import org.jbehave.scenario.steps.StepsFactory;
+
+public class OrderMatching extends JUnitScenario {
+
+    public OrderMatching() {
+        super(new MostUsefulConfiguration() {
+            @Override
+            public ScenarioDefiner forDefiningScenarios() {
+                return new ClasspathScenarioDefiner(new UnderscoredCamelCaseResolver(".scenario"),
+                        new PatternScenarioParser(keywords()));
+            }
+        });
+
+        StepsConfiguration configuration = new StepsConfiguration();
+        configuration.usePatternBuilder(new PrefixCapturingPatternBuilder("$")); 
+        addSteps(new StepsFactory(configuration).createCandidateSteps(new OrderMatchingSteps()));
+
+    }
+
+}

Copied: sandbox/spikes/di-spike/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/order_matching.scenario (from rev 1509, trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/order_matching.scenario) (0 => 1510)

--- sandbox/spikes/di-spike/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/order_matching.scenario	                        (rev 0)
+++ sandbox/spikes/di-spike/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/order_matching.scenario	2010-01-10 01:18:25 UTC (rev 1510)
@@ -0,0 +1,4 @@
+Scenario: A scenario that verifies order matching of steps
+
+Given a step that has exactly one parameter
+Then the parameter value is "exactly one parameter"
\ No newline at end of file

Modified: sandbox/spikes/di-spike/examples/trader-test-scope/pom.xml (1509 => 1510)

--- sandbox/spikes/di-spike/examples/trader-test-scope/pom.xml	2010-01-09 16:43:23 UTC (rev 1509)
+++ sandbox/spikes/di-spike/examples/trader-test-scope/pom.xml	2010-01-10 01:18:25 UTC (rev 1510)
@@ -10,13 +10,12 @@
   <name>JBehave Trader Test Scope Example</name>
 
   <build>
-    <!-- JBEHAVE-155: we want to prove that we can run scenarios in test scope -->
+    <!-- JBEHAVE-155: we can run scenarios in test scope -->
     <testSourceDirectory>${basedir}/../trader/src/main/java</testSourceDirectory>
     <plugins>
       <plugin>
         <groupId>org.jbehave</groupId>
         <artifactId>jbehave-maven-plugin</artifactId>
-        <version>${pom.version}</version>
         <executions>
           <execution>
             <id>run-scenarios-found</id>


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to