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 participants with the basic knowledge necessary for applications development using Java BDD with Cucumber and JBehave
Target Audience
- Java Developers
- Software Architects
- Software Testers who need to automate a part of their activity
Prerequisites
- OOP
- Java
- Basics of unit testing
Roadmap
Fundamentals of Behavior Driven Development
- The BDD Development Process
- Building the right software
- The knowledge constraint – dealing with uncertainty
- Introducing Behavior-Driven Development
- Test-Driven Development
- Introducing a New Feature
- Acceptance Criteria
- Requirements Analysis
- BDD Principles and Practice
Making the step from TDD to BDD
- TDD Characteristics
- BDD Characteristics
- TDD vs BDD
- BDD Benefits
- JUnit 5 Essential Annotations
Java BDD with Cucumber
- Introduction to Cucumber
- Gherkin, features, scenarios, annotations
- Install and configure Cucumber
- Adding new functionality with the help of Cucumber
Java BDD with JBehave
- Introduction to JBehave
- Functionality and terminology
- Install and configure JBehave
- Adding new functionality with the help of JBehave