Get Free Shipping on orders over $79
Test-Driven Development with Java : Create higher-quality software by writing tests first with SOLID and hexagonal architecture - Alan Mellor
eTextbook alternate format product

Instant online reading.
Don't wait for delivery!

Go digital and save!

Test-Driven Development with Java

Create higher-quality software by writing tests first with SOLID and hexagonal architecture

By: Alan Mellor

Paperback | 13 January 2023

At a Glance

Paperback


$71.49

or 4 interest-free payments of $17.87 with

 or 

Ships in 5 to 7 business days

Drive development with automated tests and gain the confidence you need to write high-quality software

Key Features:

- Get up and running with common design patterns and TDD best practices

- Learn to apply the rhythms of TDD - arrange, act, assert and red, green, refactor

- Understand the challenges of implementing TDD in the Java ecosystem and build a plan

Book Description:

Test-driven development enables developers to craft well-designed code and prevent defects. It's a simple yet powerful tool that helps you focus on your code design, while automatically checking that your code works correctly. Mastering TDD will enable you to effectively utilize design patterns and become a proficient software architect.

The book begins by explaining the basics of good code and bad code, bursting common myths, and why Test-driven development is crucial. You'll then gradually move toward building a sample application using TDD, where you'll apply the two key rhythms -- red, green, refactor and arrange, act, assert. Next, you'll learn how to bring external systems such as databases under control by using dependency inversion and test doubles. As you advance, you'll delve into advanced design techniques such as SOLID patterns, refactoring, and hexagonal architecture. You'll also balance your use of fast, repeatable unit tests against integration tests using the test pyramid as a guide. The concluding chapters will show you how to implement TDD in real-world use cases and scenarios and develop a modern REST microservice backed by a Postgres database in Java 17.

By the end of this book, you'll be thinking differently about how you design code for simplicity and how correctness can be baked in as you go.

What You Will Learn:

- Discover how to write effective test cases in Java

- Explore how TDD can be incorporated into crafting software

- Find out how to write reusable and robust code in Java

- Uncover common myths about TDD and understand its effectiveness

- Understand the accurate rhythm of implementing TDD

- Get to grips with the process of refactoring and see how it affects the TDD process

Who this book is for:

This book is for expert Java developers and software architects crafting high-quality software in Java. Test-Driven Development with Java can be picked up by anyone with a strong working experience in Java who is planning to use Test-driven development for their upcoming projects.

Table of Contents

- Building the Case for TDD

- Using TDD to Create Good Code

- Dispelling Common Myths about TDD

- Building a typical application using TDD

- Writing our First Test

- Following the Rhythms of TDD

- Driving Design: TDD and SOLID

- Test Doubles: Stubs and Mocks

- Hexagonal Architecture: Decoupling external systems

- FIRST Tests and the Test Pyramid

- Exploring TDD with Quality Assurance

- Test First, Test Later, Test Never

- Driving the domain layer

- Driving the database layer

- Driving the Web Layer

More in Personal Computers

macOS Tahoe For Dummies : For Dummies (Computer/Tech) - Guy Hart-Davis
Windows 11 For Dummies, 2nd Edition : Windows 11 For Dummies - Alan Simpson
iPhone Portable Genius : 6th Edition - Paul McFedries

RRP $32.95

$13.00

61%
OFF
Electronics Cookbook - Simon Monk

RRP $95.00

$47.75

50%
OFF
Tiny ML - Pete Warden

Paperback

RRP $95.00

$47.75

50%
OFF
Troubleshooting PCs For Dummies : For Dummies (Computer/Tech) - Dan Gookin
Outlook Pocket Guide : Pocket References Ser. - Walter Glenn

RRP $18.99

$9.00

53%
OFF
iPod Fan Book : Fan Books - Yasukuni Notomi

RRP $28.50

$11.00

61%
OFF
Switching to the Mac : Missing Manual - David Pogue

RRP $47.75

$19.00

60%
OFF
Smart Home Hacks : Hacks - Gordon Meyer

RRP $57.00

$22.00

61%
OFF
PC Hardware in a Nutshell 3e : In a Nutshell (O'Reilly) - Robert Bruce Thompson
The Cult of Mac : NO STARCH PRESS - Leander Kahney
Retro Gaming Hacks : Hacks Ser. - Chris Kohler

RRP $57.00

$30.75

46%
OFF
PC Hardware Buyer's Guide : O'Reilly Ser. - Robert Bruce Thompson

RRP $24.75

$9.00

64%
OFF
iPhone Forensics : OREILLY - Jonathan Zdziarski

RRP $76.00

$30.00

61%
OFF
Hudl For Dummies : For Dummies - Rosemary Hattersley

RRP $29.65

$27.75

iOS 11 Swift Programming Cookbook - Vandad Nahavandipoor

RRP $114.00

$45.00

61%
OFF
tmux 2 - Brian P. Hogan

Paperback

RRP $41.75

$16.00

62%
OFF
Switching to the Mac : The Missing Manual, El Capitan Edition - David Pogue
Easy micro - bit Projects - Eric Hagan

RRP $19.00

$12.75

33%
OFF