Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

IntelliJ IDEA - Writing Tests with Spock

JetBrains via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

Reviews

Start your review of IntelliJ IDEA - Writing Tests with Spock

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.