x
Integration Testing from the Trenches cover page
Integration Testing from the Trenches

Suggested

$30.00
Buy Now

Formats Included

Integration Testing from the Trenches

Software is becoming more complex day-by-day and without a test harness, maintenance will be near impossible. Although unit testing and TDD have become mainstream, neither is enough to guarantee bug-free software. That's where integration tests enter the scene.

Integration Testing from the Trenches cover page Edit
This book is 100% Complete

Updated

Buy Now
$20.00
Minimum
$30.00
Suggested

Free sample

Read Download

About the Book

Software development is a complex craft requiring many steps in its road to completion. In particular, achieving the best context-dependent ratio between cost and quality can only be achieved through an adequate testing strategy.

"Integration Testing from the Trenches" covers through different areas of testing and integration tests in both Java & JavaEE ecosystems:

  • Definitions of relevant terms around testing and integration testing
  • Basic testing tools usable for testing
  • Build tools usage for integration testing, including recipes for Maven and Gradle
  • Mocks, stubs and fakes, in particular in regard to infrastructure resources such as databases, mail and FTP servers, web services
  • In-container testing for the Spring and Spring MVC applications
  • In-container testing for JavaEE application

This book is intended for software developers that want to go beyond just unit-testing and test the collaboration of their classes and modules in an efficient way. At some point in time, available tools were restricted to Jakarta Cactus for Struts. However, the thriving Open Source ecosystem can now provide everything we need to provide proper integration tests, as well as ways to use them with the greatest possible Return Over Investment.

  • Feedback
  • Share this book

Table of Contents

  • Foreword by Aslak Knutsen
  • Foreword by Josh Long - Unit Testing in a Distributed World
  • Preface
  • About the author
  • About the reviewers
  • Book structure
  • 1. Foundations of testing
    • 1.1 Defining testing
    • 1.2 Unit Testing
    • 1.3 Integration Testing
    • 1.4 Other testing flavors
    • 1.5 Summary
  • 2. Developer testing tools
    • 2.1 A time before our time
    • 2.2 Life-cycle phases
    • 2.3 JUnit
    • 2.4 TestNG
    • 2.5 Summary
  • 3. Test-Friendly Design
    • 3.1 Reducing coupling
    • 3.2 Double definitions
    • 3.3 Mockito
    • 3.4 Ready to use Fakes
    • 3.5 Summary
  • 4. Automated testing
    • 4.1 Continuous integration
    • 4.2 Automated build tools
    • 4.3 Summary
  • 5. Infrastructure Resources Integration
    • 5.1 Common resource integration testing techniques
    • 5.2 System Time integration
    • 5.3 Filesystem integration
    • 5.4 Database integration
    • 5.5 eMail integration
    • 5.6 FTP integration
    • 5.7 Summary
  • 6. Testing Integration with Web Services
    • 6.1 REST Web Services
    • 6.2 SOAP Web Services
    • 6.3 Summary
  • 7. Spring in-container testing
    • 7.1 Spring dependencies management
    • 7.2 Spring configuration modularization
    • 7.3 Spring Test
    • 7.4 Test doubles into the Spring context
    • 7.5 Case study: Spring Pet clinic part 1
    • 7.6 Summary
  • 8. Spring Web MVC testing
    • 8.1 Context hierarchies
    • 8.2 Testing Spring MVC applications
    • 8.3 Case study: Spring Pet Clinic part 2
    • 8.4 Summary
  • 9. Java EE testing
    • 9.1 Shrinkwrap
    • 9.2 Arquillian
    • 9.3 Summary
  • Appendix A: Tools
    • Root frameworks
    • Assertion frameworks
    • Mocking frameworks
    • Fake API frameworks
    • Fake Resource frameworks
    • In-container related frameworks
    • Miscellaneous libraries

About the Author

The Leanpub Unconditional, No Risk, 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks. We process the refunds manually, so they may take a few days to show up.
See full terms.