- Revision
- 1562
- Author
- mauro
- Date
- 2010-02-08 07:25:16 -0600 (Mon, 08 Feb 2010)
Log Message
JBEHAVE-239: Updated annotations documentation.
Modified Paths
Diff
Modified: trunk/core/distribution/src/site/content/annotations.html (1561 => 1562)
--- trunk/core/distribution/src/site/content/annotations.html 2010-02-08 11:53:18 UTC (rev 1561) +++ trunk/core/distribution/src/site/content/annotations.html 2010-02-08 13:25:16 UTC (rev 1562) @@ -55,8 +55,7 @@ <h2>Scenario Annotations</h2> -<p>JBehave also supports the following Java method scenario -annotations:</p> +<p>JBehave supports the following Java method scenario annotations:</p> <ul> <li><a @@ -70,8 +69,8 @@ the corresponding method to be executed before each scenario, while the <b>AfterScenario</b> holds an optional <a href="" -value, which specifies whether the method should be executed depending on the -outcome of the scenario:</p> +value, which specifies whether the method should be executed depending +on the outcome of the scenario:</p> <pre class="brush: java"> @@ -96,6 +95,35 @@ } </pre> +<h2>Story Annotations</h2> + +<p>JBehave supports the following Java method story annotations:</p> + +<ul> + <li><a + href="" + </li> + <li><a + href="" + </li> +</ul> +<p>The <b>BeforeStory</b> and <b>AfterStory</b> annotations allow +the corresponding methods to be executed before and after each story:</p> + +<pre class="brush: java"> + + @BeforeStory + public void beforeEachStory() { + // ... + } + + @AfterStory + public void afterEachStory() { + // ... + } + +</pre> + <h2>Parameter Annotations</h2> <p>JBehave supports the following Java parameter annotations:</p> @@ -105,7 +133,8 @@ href="" </li> </ul> -<p>Parameter annotations are used in <a href="" injection</a>.</p> +<p>Parameter annotations are used in <a + href="" injection</a>.</p> <div class="clear"> <hr />
To unsubscribe from this list please visit: