0%

Book Description

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.

Table of Contents

  1. Copyright
  2. Brief Table of Contents
  3. Table of Contents
  4. Foreword
  5. Preface
  6. Acknowledgments
  7. About this Book
  8. About the Cover Illustration
  9. Part 1. Foundations and brief tour of Spock
    1. Chapter 1. Introducing the Spock testing framework
    2. Chapter 2. Groovy knowledge for Spock testing
    3. Chapter 3. A tour of Spock functionality
  10. Part 2. Structuring Spock tests
    1. Chapter 4. Writing unit tests with Spock
    2. Chapter 5. Parameterized tests
    3. Chapter 6. Mocking and stubbing
  11. Part 3. Spock in the Enterprise
    1. Chapter 7. Integration and functional testing with Spock
    2. Chapter 8. Spock features for enterprise testing
  12. Appendix A. Installing Spock
  13. Appendix B. External Spock extensions and related tools
  14. Index
  15. List of Figures
  16. List of Tables
  17. List of Listings
18.117.99.152