cucumber/gherkin — pull request #270 by brasmusson (2013-08-18 15:08:21+00:00)
Title: Java JSONFormatter should record before hooks in next scenario

Cucumber-JVM will call before hooks before scenario() (or background()) is called, therefore the Java JSONFormatter should record the before hooks in the scenario to be executed next, instead of scenario for which sceanrio() was called latest.

Things are complicated by the fact that Cucumber-Ruby call before hooks after scenario() (or background()) is called, so tests that are applied to both the Ruby and the Java implementation of the JSONFormatter cannot use before hooks.