Java Testing with Spock teaches you how to use Spock for a wide range of testing use cases in Java. You’ll start with a quick overview of Spock and work through writing unit tests using the Groovy language. You’ll discover best practices for test design as you learn to write mocks, implement integration tests, use Spock’s built-in BDD testing tools, and do functional web testing using Geb. Readers new to Groovy will appreciate the succinct language tutorial in chapter 2 that gives you just enough Groovy to use Spock effectively.
In this completely up-to-date volume, Herb Schildt, the world's leading programming author, shows you everything you need to know to develop, compile, debug, and run Java applications and applets. You'll get complete details on the Java language, its class libraries, and its development environment along with hundreds of examples and expert techniques.