Hi,

I'm looking for ideas and alternative approach on how BDD (behavior driven development) can be created in pure Java meaning no extra English layer with @When, @Given, @Then annotations. I'm looking for some ideas on how test code could be organized to make it easier to read for anybody who is not familiar with the code. Given I have self explanatory naming conventions for every test I'm more interested in ideas on how the precondition, procedure and verification can be written in Java so it reads itself. For example ideal test would look something like this.

public void testUserCanLogin() {

whenUserOpensBrowser();
whenUserEntersEmail();
whenUserEntersPassword();
whenUserClicksSubmit();
thenUserIsLoggedIn();

}

Given that these methods are implemented in different classes how can I achieve exactly this?

thanks,
veronique