concept When in category java

appears as: When
JUnit in Action

This is an excerpt from Manning's book JUnit in Action.

  • He introduces a new nesting level, to test different passenger types. He uses the JUnit 5 @DisplayName annotation to label the classes in a way that is more expressive and easier to follow #3. All of these labels start with the keyword When.
  • Stories are defined through concrete examples. These examples become the acceptance criteria for a story. Acceptance criteria are expressed BDD style through the keywords Given, When, and Then.