Writing Unit Tests With Spock Framework
After we have finished all lessons of this topic, we:
- Can create test data by using the Groovy programming language.
- Understand how we can configure the Spring MVC Test framework when we write Spock specification classes.
- Can write unit tests for Spring and Spring Boot web applications by using the Spring MVC Test framework and Spock framework.
Lessons
- Creating Test Data With Groovy
- Writing Unit Tests for Spring MVC Controllers - Configuration
- Writing Unit Tests for "Normal" Spring MVC Controllers - Rendering Data
- Writing Unit Tests for “Normal” Spring MVC Controllers – Forms
- Writing Unit Tests for a Spring REST API - Reading Data
- Writing Unit Tests for a Spring REST API - Writing Data