- Revision
- 1586
- Author
- mauro
- Date
- 2010-02-25 17:26:09 -0600 (Thu, 25 Feb 2010)
Log Message
JBEHAVE-239: Updated documentation.
Modified Paths
Diff
Modified: trunk/core/distribution/src/site/content/annotations.html (1585 => 1586)
--- trunk/core/distribution/src/site/content/annotations.html 2010-02-25 14:11:49 UTC (rev 1585) +++ trunk/core/distribution/src/site/content/annotations.html 2010-02-25 23:26:09 UTC (rev 1586) @@ -108,19 +108,29 @@ </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> +the corresponding methods to be executed before and after each story, either embedded or not:</p> <pre class="brush: java"> - @BeforeStory - public void beforeEachStory() { + @BeforeStory // equivalent to @BeforeStory(uponEmbedded=false) + public void beforeStory() { // ... } + + @BeforeStory(uponEmbedded=true) + public void beforeEmbeddedStory() { + // ... + } - @AfterStory - public void afterEachStory() { + @AfterStory // equivalent to @AfterStory(uponEmbedded=false) + public void afterStory() { // ... } + + @AfterStory(uponEmbedded=true) + public void afterEmbeddedStory() { + // ... + } </pre>
To unsubscribe from this list please visit:
