In this screencast we're going to use the Spock framework for creating and running unit tests.
00:00 - Intro
00:10 - Creating a Project for Spock
01:15 - Setting up the Dependencies
03:17 - A Simple Assertion
06:26 - Given, When and Then
08:06 - Groovy Tips for Java Developers
09:33 - Label Flexibility
10:18 - Spock Plugin
10:58 - Expecting Exceptions
13:49 - Data Pipes
18:42 - Data Tables
21:30 - Mocks
25:45 - Stubs
28:36 - Helper Methods
30:35 - with()
31:33 - verifyAll()
32:27 - Setup and Teardown
34:18 - Specifications as Documentation
35:23 - Conclusion and More Information
*Author: Trisha Gee
For more information, go to:
https://github.com/trishagee/spock-testing-demo
http://spockframework.org/spock/docs/1.3/all_in_one.html#specifications_as_documentation
Download IntelliJ IDEA: https://jb.gg/download-intellij-idea
Top 15 IntelliJ IDEA shortcuts:
https://youtu.be/QYO5_riePOQ
Join us:
Website https://jb.gg/website
Blog https://jb.gg/blog
Twitter https://twitter.com/intellijidea
Facebook https://www.facebook.com/IntelliJIDEA/
#intelliJIDEA #SpockFramework #intelliJ #jetbrains #Java #programming