Integration Testing from the Trenches
Minimum price
Suggested price

Integration Testing from the Trenches

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.

About the Author

Nicolas Fränkel
Nicolas Fränkel

Nicolas Fränkel operates as a successful Java and Java EE software architect and developer with more than 12 years experience in consulting for different clients. He also practices a trainer and a part-time lecturer in different French and Swiss higher education institutions, so as to broaden his understanding of software craftsmanship. Nicolas has also been a speaker at miscellaneous Java-related conferences in Europe, such as Devoxx Belgium, JEEConf, JavaLand and some Java User Groups and is the author of Learning Vaadin and Learning Vaadin 7. Nicolas's interests in software are broad, ranging from Rich Client Application, to open source software and build automation through Quality Processes, including diverse flavors of testing. When not tinkering with new products or writing blog posts, he may be found practicing sports: running, swimming, squashing and skiing at the moment. Other leisure activities include reading novels, motorcycles, photography, and drawing, not necessarily in that order.


The Book
  • PDF

  • EPUB

  • WEB

  • English

Minimum price
Suggested price
The Book - 5 copies package

Get 5 copies of Integration Testing from the Trenches - with a discount


  • extras
    The book in each electronic format

    PDF, ePub (Apple) and mobi (Kindle)

  • PDF

  • EPUB

  • WEB

  • English

Minimum price
Suggested price

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

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub