Skip to Content
The Well-Grounded Java Developer, Second Edition
book

The Well-Grounded Java Developer, Second Edition

by Benjamin Evans, Martijn Verburg, Jason Clark
November 2022
Intermediate to advanced
704 pages
19h 58m
English
Manning Publications
Content preview from The Well-Grounded Java Developer, Second Edition

14 Testing beyond JUnit

This chapter covers

  • Integration testing with Testcontainers
  • Specification-style testing with Spek and Kotlin
  • Property-based testing with Clojure

In the previous chapter, we looked at the general principles that guide our testing. Now we’re going to dive deeper into specific approaches to improve our testing for different situations. Whether our goal is cleaner testing of dependencies, better communication in our testing code, or even discovery of edge cases we hadn’t considered, the JVM ecosystem provides many tools to help out, and we will highlight only a few. Let’s start with that ever-present struggle: how to deal with external dependencies effectively when writing integration tests.

14.1 Integration testing with ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Coding Problems - Second Edition

Java Coding Problems - Second Edition

Anghel Leonard
Java in a Nutshell, 7th Edition

Java in a Nutshell, 7th Edition

Benjamin J. Evans, David Flanagan
Learning Java, 6th Edition

Learning Java, 6th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck

Publisher Resources

ISBN: 9781617298875Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link