[jbehave-dev] [jira] Updated: (JBEHAVE-158) Generate StepDoc from annotated methods of CandidateSteps instance

2009-04-06 Thread Mauro Talevi (JIRA)

 [ 
http://jira.codehaus.org/browse/JBEHAVE-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauro Talevi updated JBEHAVE-158:
-

Description: 
Given a CandidateSteps instance, we want generate the list of annotated 
candidate steps available to scenario writers,
with list of steps patterns and aliases.


  was:
Given a Steps instance, it'd be very useful to generate the list of candidate 
steps available to scenario writers. 

Something as simple as iterating through the annotated methods and writing out 
the list of the step patterns.



Summary: Generate StepDoc from annotated methods of CandidateSteps 
instance  (was: Generate StepDoc from annotated methods)

 Generate StepDoc from annotated methods of CandidateSteps instance
 --

 Key: JBEHAVE-158
 URL: http://jira.codehaus.org/browse/JBEHAVE-158
 Project: JBehave
  Issue Type: New Feature
  Components: Core
Affects Versions: 2.1
Reporter: Mauro Talevi
Assignee: Mauro Talevi
 Fix For: 2.2


 Given a CandidateSteps instance, we want generate the list of annotated 
 candidate steps available to scenario writers,
 with list of steps patterns and aliases.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email




[jbehave-scm] [1134] trunk/web: Updated to use latest snapshot of core that supports multiple CandidateSteps in stepdoc generation.

2009-04-06 Thread mauro
Title:  [1134] trunk/web: Updated to use latest snapshot of core that supports multiple CandidateSteps in stepdoc generation.







Revision 1134
Author mauro
Date 2009-04-06 03:19:42 -0500 (Mon, 06 Apr 2009)


Log Message
Updated to use latest snapshot of core that supports multiple CandidateSteps in stepdoc generation.

Modified Paths

trunk/web/examples/trader-web/src/main/java/org/jbehave/web/examples/trader/scenarios/StockExchangeSteps.java
trunk/web/pom.xml
trunk/web/web-waffle/src/main/java/org/jbehave/web/waffle/controllers/StepdocController.java




Diff

Modified: trunk/web/examples/trader-web/src/main/java/org/jbehave/web/examples/trader/scenarios/StockExchangeSteps.java (1133 => 1134)

--- trunk/web/examples/trader-web/src/main/java/org/jbehave/web/examples/trader/scenarios/StockExchangeSteps.java	2009-04-06 08:18:53 UTC (rev 1133)
+++ trunk/web/examples/trader-web/src/main/java/org/jbehave/web/examples/trader/scenarios/StockExchangeSteps.java	2009-04-06 08:19:42 UTC (rev 1134)
@@ -2,6 +2,8 @@
 
 import static org.junit.Assert.assertNotNull;
 
+import org.jbehave.scenario.annotations.AfterScenario;
+import org.jbehave.scenario.annotations.BeforeScenario;
 import org.jbehave.scenario.annotations.Given;
 import org.jbehave.scenario.annotations.When;
 import org.jbehave.scenario.steps.Steps;
@@ -10,6 +12,16 @@
 
 private String stockExchange;
 
+@BeforeScenario
+public void beforeStockExchangeOpens(){
+	
+}
+
+@AfterScenario
+public void afterStockExchangeCloses(){
+	
+}
+
 	@Given(a stock exchange $stockExchange)
 public void aStockExchange(String stockExchange){
 		this.stockExchange = stockExchange;


Modified: trunk/web/pom.xml (1133 => 1134)

--- trunk/web/pom.xml	2009-04-06 08:18:53 UTC (rev 1133)
+++ trunk/web/pom.xml	2009-04-06 08:19:42 UTC (rev 1134)
@@ -22,7 +22,7 @@
 dependency
   groupIdorg.jbehave/groupId
   artifactIdjbehave-core/artifactId
-  version2.2-rc2/version
+  version2.2-SNAPSHOT/version
 /dependency
  dependency
   groupIdorg.jmock/groupId


Modified: trunk/web/web-waffle/src/main/java/org/jbehave/web/waffle/controllers/StepdocController.java (1133 => 1134)

--- trunk/web/web-waffle/src/main/java/org/jbehave/web/waffle/controllers/StepdocController.java	2009-04-06 08:18:53 UTC (rev 1133)
+++ trunk/web/web-waffle/src/main/java/org/jbehave/web/waffle/controllers/StepdocController.java	2009-04-06 08:19:42 UTC (rev 1134)
@@ -24,9 +24,7 @@
 	@ActionMethod(asDefault = true)
 	public void generate() {
 		stepdocContext.clearStepdocs();
-		for ( CandidateSteps candidateSteps : steps ){
-			stepdocContext.addStepdocs(stepdocGenerator.generate(candidateSteps.getClass()));			
-		}
+		stepdocContext.addStepdocs(stepdocGenerator.generate(steps));			
 	}
 
 	@ActionMethod










To unsubscribe from this list please visit:


http://xircles.codehaus.org/manage_email



[jbehave-dev] [jira] Resolved: (JBEHAVE-159) Support multiple CandidateSteps instances in Stepdoc generation

2009-04-06 Thread Mauro Talevi (JIRA)

 [ 
http://jira.codehaus.org/browse/JBEHAVE-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauro Talevi resolved JBEHAVE-159.
--

Resolution: Fixed

 Support multiple CandidateSteps instances in Stepdoc generation
 ---

 Key: JBEHAVE-159
 URL: http://jira.codehaus.org/browse/JBEHAVE-159
 Project: JBehave
  Issue Type: Improvement
  Components: Core
Affects Versions: 2.1
Reporter: Mauro Talevi
 Fix For: 2.2


 Make StepdocGenerator contract more generic to support a vararg of 
 CandidateSteps instances, in line with other JBehave services.
 Also, add stepdocs for BeforeScenario and AfterScenario steps.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email




[jbehave-dev] [jira] Updated: (JBEHAVE-159) Support multiple CandidateSteps instances in Stepdoc generation

2009-04-06 Thread Mauro Talevi (JIRA)

 [ 
http://jira.codehaus.org/browse/JBEHAVE-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauro Talevi updated JBEHAVE-159:
-

Description: 
Make StepdocGenerator contract more generic to support a vararg of 
CandidateSteps instances, in line with other JBehave services.

Also, add stepdocs for BeforeScenario and AfterScenario steps.

  was:Make StepdocGenerator contract more generic to support a vararg of 
CandidateSteps instances, in line with other JBehave services.


 Support multiple CandidateSteps instances in Stepdoc generation
 ---

 Key: JBEHAVE-159
 URL: http://jira.codehaus.org/browse/JBEHAVE-159
 Project: JBehave
  Issue Type: Improvement
  Components: Core
Affects Versions: 2.1
Reporter: Mauro Talevi
 Fix For: 2.2


 Make StepdocGenerator contract more generic to support a vararg of 
 CandidateSteps instances, in line with other JBehave services.
 Also, add stepdocs for BeforeScenario and AfterScenario steps.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email