Java Behavior-Driven Development (BDD)
Description
This course covers major aspects of BDD with Java, including presentation, examples and exercises. During the course, attendees will also get to know how to write their own applications, applying the BDD principles and using JUnit5, Cucumber and JBehave.
We'll review the main capabilities introduced by JUnit 5, main ideas behind TDD (Test Driven Development), and then take the step to BDD (Behavior Driven Development). This step to BDD will first be made using only the new facilities and annotations of JUnit 5.
Then we'll use Cucumber and its scenarios to transpose the testing process to Cucumber.
Finally, we'll use JBehave as an alternative BDD tool, working with both Cucumber and JBehave, thus be able to compare their functionalities to make a possible choice for your projects.
is issued on the Luxoft Training form
Objectives
Provide the basic knowledge necessary for applications development using Java BDD with Cucumber and JBehave.
Target Audience
- Java developers,
- Java Architects,
- Testers that need to automate a part of their activity
Prerequisites
- OOP
- Java
- Basics of unit testing
Roadmap
[Theory – 2.5h: Practice – 0.5h] The fundamentals of Behavior Driven Development
- Adding business value to the application
- Dealing with uncertainty
- BDD principles and practice
[Theory – 1h: Practice – 2h] Taking the step from TDD to BDD
- TDD characteristics
- BDD characteristics
- BDD benefits and challenges
- JUnit 5 essential annotations
[Theory – 1: Practice – 5h] Java BDD with Cucumber
- Introduction to Cucumber
- Gherkin, features, scenarios, annotations
- Install and configure Cucumber
- Adding new functionality with the help of Cucumber
[Theory – 1h: Practice – 3h] Java BDD with JBehave
- Introduction to JBehave
- Functionality and terminology
- Install and configure JBehave
- Adding new functionality with the help of JBehave