Get 20% off all career paths from fullstack to AI
Google, IBM & Microsoft Certificates — All in One Plan
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Explore unit testing with the Spock framework in this 36-minute screencast. Learn to create a Spock project, set up dependencies, and write simple assertions. Discover the Given-When-Then structure, Groovy tips for Java developers, and how to use the Spock plugin. Master advanced techniques like expecting exceptions, data pipes, data tables, mocks, and stubs. Dive into helper methods, with() and verifyAll() functions, setup and teardown processes, and how to use specifications as documentation. Gain practical insights from author Trisha Gee and access additional resources for further learning about Spock and IntelliJ IDEA.
Syllabus
- Intro
- Creating a Project for Spock
- Setting up the Dependencies
- A Simple Assertion
- Given, When and Then
- Groovy Tips for Java Developers
- Label Flexibility
- Spock Plugin
- Expecting Exceptions
- Data Pipes
- Data Tables
- Mocks
- Stubs
- Helper Methods
- with
- verifyAll
- Setup and Teardown
- Specifications as Documentation
- Conclusion and More Information
Taught by
IntelliJ IDEA by JetBrains