Concordion > Commands > Example >

Hook methods in fixtures with examples

Since this part of the specification is in the outer example (ie. outside of the named examples) and the @BeforeExample and @AfterExample hook methods are called for the outer example, the @BeforeExample methods should have been called 1 time and the @AfterExample methods called 0 times.

Since this part of the specification is in the first example, the @BeforeExample methods should have been called 2 times and the @AfterExample methods called 1 time.

Since this part of the specification is in the second example, the @BeforeExample methods should have been called 3 times and the @AfterExample methods called 2 times.

Since this part of the specification is in the outer example, it is executed before the named examples above, the @BeforeExample methods should have been called 1 time and the @AfterExample methods called 0 times.