TimeTest your java applications with Spockline01
summary
Spock is a Groovy‑based testing framework that actually tests Java code: examples add a Spock dependency to Gradle/Maven, run Spock specs with given-when-then blocks, and integrate with JUnit and CI like Jenkins. Demos show data-driven with unroll tables producing one result per row, power asserts that print intermediate values, mocking and stubbing (including concrete classes) and generated HTML reports — all examples compile and run, with failing cases showing detailed diagnostics.
AI-written summary · about
chapters (29)
- 0:00Introduction
- 1:52Why test your applications
- 2:34Demo
- 3:27Create a class
- 4:12Write a test
- 5:10Test a given block
- 12:38Test a key
- 13:26Power hazards
- 14:00Groovy output
- 15:22Exceptions
- 17:40Parameterized test
- 18:21Multiple variables
- 20:27List
- 20:52CSV
- 23:41Example
- 28:10Order
- 29:32User Repository
- 30:02User Signature
- 30:35List of Users
- 31:57Runtime Exception
- 32:45Stop more than one thing
- 33:36Fine by ID
- 33:58Life cycle
- 34:20Cleanup
- 34:58Add a new number
- 37:53Setup method
- 38:59Documentation
- 39:27Spock Reports
- 41:02Resources
related talks
46mEasy testing with Spock
01h 17mTesting Java, Groovy, Spring and Web Applications with Spock
51mSpock Framework: The Ultimate Framework for Testing Your Java Applications
18mSpeedup unit testing with the Spock framework
35mThe Groovy Way of Testing with Spock
01h 12mUnit Tests as a Specification
45mWhy Use Spock Instead of JUnit Mockito for Your Java Tests
29mWhy I prefer Spock over JUnit
